docs/tutorials/rag/ #28762
Replies: 4 comments 2 replies
-
If you're using Chroma during the query analysis, don't forget to change the filter for Instead of |
Beta Was this translation helpful? Give feedback.
-
You have to run |
Beta Was this translation helpful? Give feedback.
-
On Windows 11 running Python 3.13.1 needed to change to a pydantic BaseModel to get the analyze_query to work. Keep getting ValueError: no signature found for builtin type <class 'dict'> when running the query = structured_llm.invoke(state["question"]) Updated code as follows and works. The answer is slightly different but by adjusting the query was able to come close from typing import Literal Define the Search schema using Pydantic instead of TypedDictclass Search(BaseModel): for step in graph.stream( If anyone knows how to make it work with the TypeDict vs BaseModel would be interested in the answer, otherwise hope this helps someone else if they get stuck. Cheers! |
Beta Was this translation helpful? Give feedback.
-
The documentation is not up-to-date: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
docs/tutorials/rag/
One of the most powerful applications enabled by LLMs is sophisticated question-answering (Q&A) chatbots. These are applications that can answer questions about specific source information. These applications use a technique known as Retrieval Augmented Generation, or RAG.
https://python.langchain.com/docs/tutorials/rag/
Beta Was this translation helpful? Give feedback.
All reactions