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

[examples] Add a chatbot built with LangChain and Astra DB #646

Merged
merged 8 commits into from
Oct 25, 2023

Conversation

eolivelli
Copy link
Member

@eolivelli eolivelli commented Oct 25, 2023

This is the first iteration of the sample application about how to build a chat bot using LangChain and the RAG pattern.

Summary:

  • the code is inspired by https://github.com/langchain-ai/chat-langchain
  • the application uses DataStax Astra DB as vector database
  • OpenAI is used as LLM for completions and for computing the text embeddings
  • as in the original chat application, the chat history is to be handled on the client side

@eolivelli eolivelli changed the title [examples] Add a RAG chatbot built with LangChain and Astra DB [examples] Add a chatbot built with LangChain Oct 25, 2023
@eolivelli eolivelli marked this pull request as ready for review October 25, 2023 12:20
- name: "answers-topic"
creation-mode: create-if-not-exists
pipeline:
- name: "Implemented a cha-tbot using OpenAI and LangChain"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- name: "Implemented a cha-tbot using OpenAI and LangChain"
- name: "Implemented a chat-bot using OpenAI and LangChain"

@eolivelli eolivelli changed the title [examples] Add a chatbot built with LangChain [examples] Add a chatbot built with LangChain and Astra DB Oct 25, 2023
@eolivelli eolivelli merged commit ff76e25 into main Oct 25, 2023
10 checks passed
@eolivelli eolivelli deleted the impl/langchain-chat branch October 25, 2023 14:39
return [Document(page_content="foo"), Document(page_content="bar")]


def get_retriever(embeddingsModel) -> BaseRetriever:
Copy link
Member

Choose a reason for hiding this comment

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

This code doesn't seem to be used

benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 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.

2 participants