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

Langchain Multihop as an experimental feature #35

Merged
merged 7 commits into from
Apr 24, 2024
Merged

Conversation

KevinLuong96
Copy link
Contributor

@KevinLuong96 KevinLuong96 commented Apr 24, 2024

  • PR title: "area: description"
    • Where "area" is whichever of interface, frontend, model, tools, backend, etc. is being modified. Use "docs: ..." for purely docs changes, "infra: ..." for CI changes.
    • Example: "deployment: add Azure model option"

Description: Currently, multihop is only supported through use of Langchain ReAct agents. We want to allow users to set an environment variable to enable this experimental feature.

This PR:

  • Creates an /experimental_features endpoint which returns a dictionary of experimental features and their state

  • Adds Storage to the langchain chat endpoint

  • Returns Langchain_tools as available tools when the flag is set to True

  • Updates the langchain chat flow to use the generic chat helper functions and

  • Add tests and docs: Please include testing and documentation for your changes

  • Lint and test: Run make lint and make test

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@KevinLuong96 KevinLuong96 marked this pull request as ready for review April 24, 2024 17:29
@KevinLuong96 KevinLuong96 requested a review from a team as a code owner April 24, 2024 17:29
src/backend/chat/custom/langchain.py Show resolved Hide resolved
src/backend/routers/chat.py Outdated Show resolved Hide resolved
src/backend/schemas/langchain_chat.py Show resolved Hide resolved
@KevinLuong96 KevinLuong96 changed the title Langchain storage Langchain Multihop as an experimental feature Apr 24, 2024
@KevinLuong96 KevinLuong96 merged commit 7936fbf into main Apr 24, 2024
2 checks passed
@KevinLuong96 KevinLuong96 deleted the langchain_storage branch April 24, 2024 18:29
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.

None yet

3 participants