fix error in chroma docker instructions (#8533)

This makes the Chroma instructions for Docker work! 


https://python.langchain.com/docs/integrations/vectorstores/chroma#basic-example-using-the-docker-container
This commit is contained in:
Jeff Huber 2023-07-31 16:32:53 -07:00 committed by GitHub
parent 144b4c0c78
commit 07d6d1ca38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,8 +269,9 @@
" )\n",
"\n",
"# tell LangChain to use our client and collection name\n",
"db4 = Chroma(client=client, collection_name=\"my_collection\")\n",
"docs = db.similarity_search(query)\n",
"db4 = Chroma(client=client, collection_name=\"my_collection\", embedding_function=embedding_function)\n",
"query = \"What did the president say about Ketanji Brown Jackson\"\n",
"docs = db4.similarity_search(query)\n",
"print(docs[0].page_content)"
]
},