Replies: 1 comment 8 replies
-
I found a similar solved discussion that might help you with your issue: Retrieval QA and prompt templates. It discusses how to replace the default prompt template in Here are some steps and modifications you can make to your code to get the expected summarization result using LangChain v3:
By following these steps, you should be able to get the expected summarization result using LangChain v3. If you encounter any specific errors, please provide more details so I can assist you further. For more details, you can refer to the relevant sources: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Not getting expected result and getting , change chain as per langchain v3
getting :
{'query': 'Summarize the document covering all aspects', 'result': "I'm sorry, but I cannot summarize the document without knowing which document you are referring to. Please provide more details or a specific question to answer.", 'source_documents': [Document(metadata={'source': 'RILLR19012024.pdf', 'file_path': 'RILLR19012024.pdf', 'page': 1, 'total_pages': 27, 'Author': 'Kavina Vora', 'Comments': '', 'Company': 'RIL', 'ContentTypeId': '0x0101006A3DA96ECCE9604EA1B796B38BC13BC3', 'CreationDate': "D:20240119180420+05'30'", 'Creator': 'Acrobat PDFMaker 23 for Word', 'Keywords': '', 'ModDate': "D:20240119181004+05'30'", 'Producer': 'Adobe PDF Library 23.8.234', 'SourceModified': '', 'Subject': '', 'Title': ''}, page_content='Regulations. Our responsibility is to express a conclusion on the Statement based on our\nreview.\n3. We conducted our review of the Statement in accordance wit
System Info
langchain
langchain-community
langchain-core
langchain-text-splitters
langchainhub
langdetect
langsmith
langchain-openai
pdfplumber
psycopg==3.1.18
psycopg-binary==3.1.18
psycopg2==2.9.9
psycopg2-binary==2.9.9
pgvector
openai==1.47.0
Beta Was this translation helpful? Give feedback.
All reactions