Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Langchain ChromaDB RAG template does not seem to work #1008

Closed
1 task done
slice4e opened this issue May 10, 2024 · 1 comment
Closed
1 task done

Comments

@slice4e
Copy link

slice4e commented May 10, 2024

Which component is this bug for?

Langchain Instrumentation

馃摐 Description

The ChromaDB instrumentation worked for me when using the provided sample app. However, when using a Langchain RAG implementation with ChromaDB, here: https://github.com/langchain-ai/langchain/tree/master/templates/rag-chroma
I did not work for me.

馃憻 Reproduction steps

Download the Langchain ChromaDB RAG template: https://github.com/langchain-ai/langchain/tree/master/templates/rag-chroma
Modify chain.py to enable Traceloop. (import and Traceloop.init).

馃憤 Expected behavior

Expected to see the spans in the web GUI

馃憥 Actual Behavior with Screenshots

Did not see the spans.

馃 Python Version

3.11

馃搩 Provide any additional context for the Bug.

No response

馃憖 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@nirga
Copy link
Member

nirga commented May 14, 2024

This should work, see this example. Because LangServe uses uvicorn you need to initialize Traceloop in the same file as the chain itself, and not in the server.py file - as they "live" in separate python contexts

@nirga nirga closed this as completed May 14, 2024
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