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

feat: new Vectara RAG Component #2733

Merged
merged 11 commits into from
Jul 28, 2024

Conversation

david-oplatka
Copy link
Contributor

This component implements the full Vectara RAG pipeline. New changes:

  • End-to-end RAG with summarization prompts from Vectara (does not require additional OpenAI key)
  • Supports Vectara's new reranker

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jul 16, 2024
Copy link
Contributor

Pull Request Validation Report

This comment is automatically generated by Conventional PR

Whitelist Report

Whitelist Active Result
Pull request is a draft and should be ignored
Pull request is made by a whitelisted user and should be ignored
Pull request is submitted by a bot and should be ignored
Pull request is submitted by administrators and should be ignored

Result

Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated.

Validation Report

Validation Active Result
All commits in this pull request has valid messages
Pull request does not introduce too many changes
Pull request has mentioned issues
Pull request has valid branch name
Pull request should have a non-empty body
Pull request has a valid title

Result

Pull request is invalid.

Reason

  • Pull request title does not follow the desired pattern

Last Modified at 16 Jul 24 17:26 UTC

@ogabrielluiz ogabrielluiz changed the base branch from dev to main July 17, 2024 00:50
@ogabrielluiz
Copy link
Contributor

Hey @david-oplatka

Thanks for the PR.

I've changed the base to main because we don't have a dev branch anymore.

@ofermend
Copy link
Contributor

Thanks @ogabrielluiz - anything else needed?

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 26, 2024
@ogabrielluiz
Copy link
Contributor

Hey @ofermend

I've updated the component. If it is working as intended by @david-oplatka. We can merge it.

@ofermend
Copy link
Contributor

SG. Let's merge then - thanks!

@ogabrielluiz ogabrielluiz changed the title New Vectara RAG Component feat: new Vectara RAG Component Jul 28, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) July 28, 2024 13:49
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jul 28, 2024
rogeriochaves and others added 11 commits July 28, 2024 10:49
Update the filter parameter in the VectaraRagComponent class to use the correct variable name 'self.filter' instead of 'filter'. This ensures that the correct filter value is passed to the VectaraQueryConfig object.
Add a condition to the `set_cache_coro` function call in the `Graph` class. The condition checks if the `cache` variable is true and the `flow_id` is not empty before calling the function. This ensures that the cache is set only when both conditions are met, improving the efficiency of the code.
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) July 28, 2024 13:50
@ogabrielluiz ogabrielluiz merged commit 469625c into langflow-ai:main Jul 28, 2024
50 checks passed
nicoloboschi pushed a commit to datastax/ragstack-ai-langflow that referenced this pull request Jul 30, 2024
* First implementation of LangWatch tracer

* Remove dependency from backend base internal and add langwatch docs

* Bump langwatch to v0.1.4

* Fix missing log parameter on method

* Move docs to the right folder

* chore: update lock

* Add Vectara RAG component and docs

* [autofix.ci] apply automated fixes

* refactor: update VectaraRAG component to the new component standard

* fix: update VectaraRagComponent filter parameter

Update the filter parameter in the VectaraRagComponent class to use the correct variable name 'self.filter' instead of 'filter'. This ensures that the correct filter value is passed to the VectaraQueryConfig object.

* fix: add condition to set_cache_coro in Graph class

Add a condition to the `set_cache_coro` function call in the `Graph` class. The condition checks if the `cache` variable is true and the `flow_id` is not empty before calling the function. This ensures that the cache is set only when both conditions are met, improving the efficiency of the code.

---------

Co-authored-by: Rogério Chaves <[email protected]>
Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
(cherry picked from commit 469625c)
@LakshmiBhaskarPVL
Copy link

damn good !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants