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

Feature/add agent provider rebased v2 #319

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

emrgnt-cmplxty
Copy link
Contributor

@emrgnt-cmplxty emrgnt-cmplxty commented Apr 22, 2024

🚀 This description was created by Ellipsis for commit 5587007

Summary:

This PR introduces significant changes to the R2R project, including the addition of new classes for handling vector entries and search results, updates to provider classes, modifications to the RAG pipeline, and updates to configuration files.

Key points:

  • Added new classes VectorEntry and VectorSearchResult in r2r/core/abstractions/vector.py for handling vector entries and search results.
  • Introduced new classes ProviderConfig and Provider in r2r/core/providers/base.py as base classes for all providers.
  • Updated existing provider classes in r2r/core/providers to inherit from these new base classes and added new provider classes.
  • Modified r2r/core/pipelines/rag.py to include new parameters in the rerank_results method and updated the run method accordingly.
  • Added new pipeline classes in r2r/pipelines for different use cases.
  • Updated r2r/main/app.py and r2r/main/factory.py to use the new provider classes and methods.
  • Updated pyproject.toml to include new dependencies.
  • Updated the configuration files in r2r/examples/configs to reflect the new structure.

Generated with ❤️ by ellipsis.dev

Copy link

vercel bot commented Apr 22, 2024

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

Name Status Preview Comments Updated (UTC)
r2r-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 0:01am

@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review April 22, 2024 23:59
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me!

  • Reviewed the entire pull request up to 5587007
  • Looked at 4001 lines of code in 68 files
  • Took 1 minute and 36 seconds to review
More info
  • Skipped 2 files when reviewing.
  • Skipped posting 1 additional comments because they didn't meet confidence threshold of 50%.
1. r2r/vector_dbs/local/base.py:48:
  • Assessed confidence : 66%
  • Grade: 0%
  • Comment:
    Consider checking if the table already exists before attempting to create it in the initialize_collection method to optimize database operations and avoid potential errors.
  • Reasoning:
    The code attempts to initialize a LocalVectorDB instance and set up a SQLite database connection. The initialize_collection method is supposed to create a table if it does not exist. However, the method does not check if the table already exists before attempting to create it, which could lead to unnecessary operations or errors if the table already exists. This could be optimized by checking the existence of the table before attempting to create it.

Workflow ID: wflow_7AyyOxHSMoyPgdy4


Not what you expected? You can customize the content of the reviews using rules. Learn more here.

@emrgnt-cmplxty emrgnt-cmplxty changed the base branch from main to dev April 23, 2024 00:10
@emrgnt-cmplxty emrgnt-cmplxty merged commit 7b55211 into dev Apr 23, 2024
2 checks passed
emrgnt-cmplxty added a commit that referenced this pull request Apr 23, 2024
* modify prompt provider workflow, add agent

* fix run qna client

* add provider abstraction

* tweaks and cleans

* move text splitter config locale
emrgnt-cmplxty added a commit that referenced this pull request Apr 23, 2024
* modify prompt provider workflow, add agent

* fix run qna client

* add provider abstraction

* tweaks and cleans

* move text splitter config locale
emrgnt-cmplxty added a commit that referenced this pull request Apr 23, 2024
* modify prompt provider workflow, add agent

* fix run qna client

* add provider abstraction

* tweaks and cleans

* move text splitter config locale
emrgnt-cmplxty added a commit that referenced this pull request Apr 24, 2024
* update the default embd. (#310)

* Feature/add jina reranker rebased (#312)

* Add jina reranker

* fix oai

* Revampt client & server approach. (#316)

* Revampt client & server approach.

* cleanups

* tweak hyde prompt

* Feature/add agent provider (#317)

* update pipeline (#315)

* Update CONTRIBUTING.md

* Delete CONTRIBUTOR.md

* Adding agent provider

* Feature/add agent provider rebased v2 (#319)

* modify prompt provider workflow, add agent

* fix run qna client

* add provider abstraction

* tweaks and cleans

* move text splitter config locale

* Feature/modify get all uniq values (#325)

* refine

* update

* format

* fix

* Feature/dev merge rebased (#329)

* Update local_rag.mdx

* Update llms.mdx (#322)

* update the default embd. (#310)

* Feature/add agent provider (#317)

* update pipeline (#315)

* Update CONTRIBUTING.md

* Delete CONTRIBUTOR.md

* Adding agent provider

* Feature/modify get all uniq values (#325)

* refine

* update

* format

* fix

* dev merge

* Feature/fix dev merge mistakes rebased (#330)

* Feature/add agent provider (#317)

* update pipeline (#315)

* Update CONTRIBUTING.md

* Delete CONTRIBUTOR.md

* Adding agent provider

* Feature/modify get all uniq values (#325)

* refine

* update

* format

* fix

* dev merge

* cleanup

* Feature/dev cleanup (#331)

* final pub

* final pub

* json clean

* fix sentence transformer issue

* include rerank

* fix llama cpp

* rebase

* fix rerank

* small tweaks

* rollbk config

* cleanup
@emrgnt-cmplxty emrgnt-cmplxty deleted the feature/add-agent-provider-rebased-v2 branch April 24, 2024 17:33
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