mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 15:49:58 +00:00
## Problem Some extensions do not contain tests, which can be easily run on top of docker-compose or staging. ## Summary of changes Added the pg_regress based tests for `pg_tiktoken`, `pgx_ulid`, `pg_rag` Now they will be run on top of docker-compose, but I intend to adopt them to be run on top staging in the next PRs
12 lines
465 B
SQL
12 lines
465 B
SQL
-- Chunking function tests
|
|
SELECT rag.chunks_by_character_count('the cat sat on the mat', 10, 5);
|
|
|
|
SELECT rag.chunks_by_character_count('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 20, 10);
|
|
|
|
SELECT (rag.chunks_by_character_count('the cat', 10, 0))[1];
|
|
|
|
SELECT rag.chunks_by_character_count('', 10, 5);
|
|
|
|
SELECT rag.chunks_by_character_count('a b c d e f g h i j k l m n o p', 5, 2);
|
|
|