Fix example match_documents fn table name, grammar (#3294)

ref
https://github.com/hwchase17/langchain/pull/3100#issuecomment-1517086472

Co-authored-by: Daniel Chalef <daniel.chalef@private.org>
fix_agent_callbacks
Daniel Chalef 1 year ago committed by GitHub
parent 2fd24d31a4
commit 1ecbeec24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "683953b3",
"metadata": {},
@ -35,7 +36,7 @@
" id bigint,\n",
" content text,\n",
" metadata jsonb,\n",
" -- we return matched vectors to allow to execute maximal marginal relevance searches\n",
" -- we return matched vectors to enable maximal marginal relevance searches\n",
" embedding vector(1536),\n",
" similarity float)\n",
" LANGUAGE plpgsql\n",
@ -48,11 +49,11 @@
" content,\n",
" metadata,\n",
" embedding,\n",
" 1 -(docstore.embedding <=> query_embedding) AS similarity\n",
" 1 -(documents.embedding <=> query_embedding) AS similarity\n",
" FROM\n",
" docstore\n",
" documents\n",
" ORDER BY\n",
" docstore.embedding <=> query_embedding\n",
" documents.embedding <=> query_embedding\n",
" LIMIT match_count;\n",
" END;\n",
" $$;\n",
@ -390,7 +391,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
"version": "3.11.3"
}
},
"nbformat": 4,

Loading…
Cancel
Save