Skip to content

Commit

Permalink
Merge pull request #15 from artefactory-skaff/fix/pydantic-error
Browse files Browse the repository at this point in the history
Fix pydantic error in rag_basic
  • Loading branch information
AlexisVLRT authored May 16, 2024
2 parents 6a11f13 + ed744d8 commit 88b0efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/rag_components/chain_links/rag_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def rag_basic(llm, retriever: BaseRetriever) -> DocumentedRunnable:
chain = (
{
"relevant_documents": fetch_docs_chain(retriever),
"question": RunnablePassthrough(Question),
"question": RunnablePassthrough(input_type=Question),
}
| ChatPromptTemplate.from_template(prompt)
| llm
Expand Down

0 comments on commit 88b0efe

Please sign in to comment.