change id column type to uuid to match function (#7456)

The table creation process in these examples commands do not match what
the recently updated functions in these example commands is looking for.
This change updates the type in the table creation command.
Issue Number for my report of the doc problem #7446
@rlancemartin and @eyurtsev I believe this is your area
Twitter: @j1philli

Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
Josh Phillips 2023-08-10 17:57:19 -06:00 committed by GitHub
parent 02430e25b6
commit 5fc07fa524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@
"\n", "\n",
" -- Create a table to store your documents\n", " -- Create a table to store your documents\n",
" create table documents (\n", " create table documents (\n",
" id bigserial primary key,\n", " id uuid primary key,\n",
" content text, -- corresponds to Document.pageContent\n", " content text, -- corresponds to Document.pageContent\n",
" metadata jsonb, -- corresponds to Document.metadata\n", " metadata jsonb, -- corresponds to Document.metadata\n",
" embedding vector(1536) -- 1536 works for OpenAI embeddings, change if needed\n", " embedding vector(1536) -- 1536 works for OpenAI embeddings, change if needed\n",