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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

02_advanced_rag - Self Query <- clarifications #84

Open
Sygyzmundovych opened this issue Aug 6, 2024 · 0 comments
Open

02_advanced_rag - Self Query <- clarifications #84

Sygyzmundovych opened this issue Aug 6, 2024 · 0 comments
Assignees

Comments

@Sygyzmundovych
Copy link

Hello. I ran 02_advanced_rag option 3.

  1. It does not display what user query was submitted at first.
  2. Execution exits after displaying:

Now try to ask 'What is the summary of the episode 67?' and notice how self-querying can help to avoid hallucination.

Here is the output:

(.venv) user: 02_advanced_rag $ poetry run python main.py
Welcome to the interactive Q&A session

0: Prerequisite - Clean up database
1: Prerequisite - Ingest sample data
2: Advanced RAG - Compare Splitter Methods
3: Advanced RAG - Self Query
4: Advanced RAG - Rewrite Retrieve Read
5: Advanced RAG - RAG Fusion
6: Exit

Which task would you like to run?3
Without database filtering based on user query


> Entering new RetrievalQA chain...

> Finished chain.
Source Documents:
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 0
Title: Microsoft Word - Word - Transcript - Episode 64.docx  Page Number: 0
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 7
Title: Microsoft Word - Word - Transcript - Episode 64.docx  Page Number: 8
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 6
Result: The summary of episode 65 is that supply chains are moving towards being run on information and data, rather than intuition. The episode discusses the importance of grounding supply chains in data, insights, and factuality, and using technology to power supply chains. The guest, Paula Natoli from Google Cloud, talks about how technology can be utilized to solve business problems and generate opportunities in the supply chain and logistics industry. The conversation also touches on the challenges that supply chain executives are facing today, emphasizing the increasing complexity of supply chains.
With database filtering based on user query
Podcast Title: episode 65


> Entering new RetrievalQA chain...

> Finished chain.
Source Documents:
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 0
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 7
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 6
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 6
Title: Microsoft Word - Word - Transcript - Episode 65.docx  Page Number: 5
Result: The summary of episode 65 is that supply chains are moving towards being data-driven, grounded in insights and factuality, and powered by technology. The conversation with Google Cloud's Paula Natoli focused on the challenges supply chain executives are facing today, the role of technology in solving supply chain problems, and the future of supply chain being driven by information rather than intuition. The episode also discussed the potential of Generative AI and the role of Google Cloud in helping organizations integrate and innovate in their supply chain operations.
[2024-08-06 15:23:36] SUCCESS: Self querying completed successfully!
                Now try to ask 'What is the summary of the episode 67?' and notice how self-querying can help to avoid hallucination.
                
(.venv) user: 02_advanced_rag $ 
image
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