Skip to content

Metadata In Collection Doesn't Show up When Calling From Typescript, but works fine using Python #4273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vspatel927 opened this issue Apr 13, 2025 · 1 comment

Comments

@vspatel927
Copy link

I'm using Chroma locally to test 2 small RAG projects I am working on. I have a Python script (load_data.py), which creates or loads in my local Chroma DB, and then inserts metadata from a JSON file using some parsing logic.

I then run my database using the chroma run command.

1 RAG project is a basic AI chatbot, running a Python backend, which calls the collection (named "faqs"), and queries it based on query text sent from the API. The lookup is successful and is sent back to the frontend.

Another RAG project is a AI voice agent, which uses JavaScript/TS. I use ChromaClient to initialize the client, and then call the faq collection. I am able to see the collection being called, but the metadata is null, unlike in Python where I'm able to get metadata results.

Specfically, I'm getting the error Error querying ChromaDB: TypeError: Cannot read properties of undefined (reading 'generate') . Which I assume is because of null metadata in the collection, even though I populated the metadata and can confirm I am getting metadata in my Python backend.

@jeffchuber
Copy link
Contributor

@vspatel927 what versions of the sever and python client are you running?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants