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

[WIP] Plan-Driven Retrieval-Augmented Generation Experinment #316

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

IANTHEREAL
Copy link
Contributor

@IANTHEREAL IANTHEREAL commented Oct 2, 2024

test question:

RAG VM

panner(gpt-4o-mini)

Step(id=1, subquestion='What is the newest version of TiDB?', tool_used='retrieve_knowledge_graph', arguments={'query': 'Newest version of TiDB'}, output_tags='newest_version'),
Step(id=2, subquestion='What are the performance improvements of TiDB from version 6.5 to the newest version?', tool_used='retrieve_knowledge_embedded_chunks', arguments={'query': 'TiDB performance improvements between version 6.5 and {newest_version}'}, output_tags='performance_improvements'),
Step(id=3, subquestion='Can you summarize the performance improvements from version 6.5 to the newest version of TiDB?', tool_used='llm_generate', arguments={'prompt': 'Summarize the performance improvements of TiDB from version 6.5 to the newest version based on {performance_improvements}.'}, output_tags='performance_summary')

panner(gpt-4o)

Step(id=1, subquestion='What is the newest version of TiDB?', tool_used='retrieve_knowledge_graph', arguments={'query': 'Newest version of TiDB'}, output_tags='newest_version_graph_data'),
Step(id=2, subquestion='Determine the newest version number of TiDB from the retrieved data.', tool_used='llm_generate', arguments={'prompt': 'Extract the newest version number of TiDB from {newest_version_graph_data}.'}, output_tags='newest_version_number'),
Step(id=3, subquestion='What are the performance improvements between TiDB version 6.5 and the newest version?', tool_used='retrieve_knowledge_embedded_chunks', arguments={'query': 'TiDB version 6.5 to {newest_version_number} performance improvements'}, output_tags='performance_improvements_data'),
Step(id=4, subquestion='Summarize the performance improvements of TiDB from version 6.5 to the newest version.', tool_used='llm_generate', arguments={'prompt': 'Summarize the performance improvements of TiDB from version 6.5 to {newest_version_number} based on {performance_improvements_data}.'}, output_tags='performance_summary')]

RAG tools callings

call function GraphKnowledge {'query': 'List the TiDB versions from 6.5 to the latest version with release notes and performance improvements.'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.1 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.2 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.3 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.4 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.5 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.6 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.7 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.8 release notes'}
call function VectorChunks {'query': 'Performance improvements and new features in TiDB 6.5.9 release notes'}
call function VectorChunks {'query': 'Transaction throughput and query latency metrics for TiDB from version 6.5 to the latest version'}
call function VectorChunks {'query': 'Scalability optimizations in TiDB from version 6.5 to the latest version'}
call function VectorChunks {'query': 'User reviews and performance benchmarks comparing TiDB version 6.5 to the latest version'}
data: {"role": "assistant", "content": "### Summary of Performance Improvements from TiDB 6.5 to Latest Versions\n\n#### Key Performance...

Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tidb-ai-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:28am
tidb-ai-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 5:28am

@IANTHEREAL IANTHEREAL changed the title Tools calling experinment [WIP] Plan-Driven Retrieval-Augmented Generation Experinment Oct 2, 2024
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

Successfully merging this pull request may close these issues.

1 participant