Open punsoca opened 4 days ago
It's currently not supported despite what the documentation said.
im using a vector database with chroma and seems to be working just fine, maybe we could help each other but im ingesting the documents first to the db and then pulling the entire db to get the information
Hi thank you for sharing. I received another email response saying the get_by_ids isn’t currently available right under langchain_chroma.
On Sat, Nov 23, 2024 at 5:17 AM Fernando Rodrigues @.***> wrote:
im using a vector database with chroma and seems to be working just fine, maybe we could help each other but im ingesting the documents first to the db and then pulling the entire db to get the information
— Reply to this email directly, view it on GitHub https://github.com/langchain-ai/langchain/issues/28276#issuecomment-2495477113, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUHC5GYUDSYUSXQLC3IOLTT2CB57JAVCNFSM6AAAAABSIIRGF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVGQ3TOMJRGM . You are receiving this because you authored the thread.Message ID: @.***>
that's interesting. im not polling from ids and most the intire vector data base maybe could be that?
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
{ "name": "NotImplementedError", "message": "Chroma does not yet support get_by_ids.", "stack": "--------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) Cell In[87], line 3 1 # testing get the first two document ids 2 # ids = ['db1e5f74-f18d-4765-a193-d30eaed7552f', '12861b34-df54-4e40-8e1e-ae9ea901d378'] ----> 3 vector_store.get_by_ids(['6314982d-455f-47cc-bf97-6e5324f6af62']) 5 # get_by_ids() functionality is not avaiable until v0.2.11
File ~/Documents/0_-_Python_Projects/05_Gen_AI/venv_3_11/lib/python3.11/site-packages/langchain_core/vectorstores/base.py:164, in VectorStore.get_by_ids(self, ids) 140 \"\"\"Get documents by their IDs. 141 142 The returned documents are expected to have the ID field set to the ID of the (...) 161 .. versionadded:: 0.2.11 162 \"\"\" 163 msg = f\"{self.class.name} does not yet support get_by_ids.\" --> 164 raise NotImplementedError(msg)
NotImplementedError: Chroma does not yet support get_by_ids." }
Description
I am just trying to run the vector_store method
get_by_ids
- it is listed as one of the available methods in hereSystem Info
$ python -m langchain_core.sys_info
System Information
Package Information
Optional packages not installed
Other Dependencies