File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
recipes/use_cases/agents/langchain Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 238
238
" rag_chain = prompt | llm | StrOutputParser()\n " ,
239
239
" \n " ,
240
240
" # Run\n " ,
241
- " generation = rag_chain.invoke({\" context\" : docs, \" question\" : question})\n " ,
241
+ " generation = rag_chain.invoke({\" context\" : format_docs( docs) , \" question\" : question})\n " ,
242
242
" print(generation)"
243
243
]
244
244
},
330
330
"source" : [
331
331
" from typing_extensions import TypedDict\n " ,
332
332
" from typing import List\n " ,
333
+ " from langchain.schema import Document\n " ,
333
334
" \n " ,
334
335
" ### State\n " ,
335
336
" \n " ,
346
347
" question : str\n " ,
347
348
" generation : str\n " ,
348
349
" web_search : str\n " ,
349
- " documents : List[str]\n " ,
350
+ " documents : List[Document]\n " ,
351
+ " \n " ,
350
352
" \n " ,
351
- " from langchain.schema import Document\n " ,
352
353
" \n " ,
353
354
" ### Nodes\n " ,
354
355
" \n " ,
You can’t perform that action at this time.
0 commit comments