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
pull/8553/head
Jeff Huber 1 year ago committed by GitHub
parent 144b4c0c78
commit 07d6d1ca38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)"
]
},

Loading…
Cancel
Save