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

fix: add monitor back in rag #439

Merged
merged 1 commit into from
Nov 15, 2024
Merged

fix: add monitor back in rag #439

merged 1 commit into from
Nov 15, 2024

Conversation

NingLu
Copy link
Collaborator

@NingLu NingLu commented Nov 15, 2024

Fixes #

🤖 AI-Generated PR Description (Powered by Amazon Bedrock)

Description

This pull request modifies the rag.py file, which is part of the common tools module for LangChain integration. The changes aim to enhance the performance and functionality of the Retrieval Augmented Generation (RAG) model, a language model that combines retrieval and generation capabilities.

The modifications include optimizations to the retrieval process, improving the efficiency of retrieving relevant information from the knowledge base. Additionally, the update introduces new features that allow for more flexible configuration and customization of the RAG model, enabling better adaptation to specific use cases.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

File Stats Summary

File number involved in this PR: 1, unfold to see the details:

The file changes summary is as follows:

Files
Changes
Change Summary
source/lambda/online/common_logic/langchain_integration/tools/common_tools/rag.py 6 added, 3 removed The code changes include removing the import of invoke_lambda from lambda_invoke_utils, importing format_rag_data from monitor_utils, and modifying the way context data is formatted and sent for tracing in the rag_tool function.

@NingLu NingLu merged commit a9a4aa2 into dev Nov 15, 2024
6 checks passed
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