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

Add Upstash RAG Chat #22

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ogzhanolguncu
Copy link

@ogzhanolguncu ogzhanolguncu commented Aug 21, 2024

This PR, from the Upstash DX team, aims to greatly simplify the pdftochat code. It proposes making the codebase easier by using Upstash's Vector store for embedding conversion. The Upstash RAG Chat SDK helps eliminate clutter and confusing sections.

Key updates:

  • Upgrades Next.js version
  • Integrates Upstash RAG Chat and Upstash Vector
  • Removes redundant code

Edit: I upgraded the Next.js to 14 to resolve some issues that were causing failures. Keeping the codebase up to date is important, so most of the changes in the diff are due to the updated lock file. Additionally, we are open to partnerships if you're interested. pdftochat can use Upstash's Vector for embeddings, Redis for history, and Qstash LLM.

Thanks to this PR, we can now easily add analytics tools like Helicone and LangSmith and easily swap between different providers like openai, togetherai, mistralai. For instance:

const ragChat = new RAGChat({
  model: openai("gpt-3.5-turbo", {
    apiKey: process.env.OPENAI_API_KEY,
    analytics: { name: "helicone", token: process.env.HELICONE_API_KEY },
  }),
});

Copy link

vercel bot commented Aug 21, 2024

@ogzhanolguncu is attempting to deploy a commit to the Hassanteam Team on Vercel.

A member of the Team first needs to authorize it.

@ogzhanolguncu ogzhanolguncu marked this pull request as ready for review August 21, 2024 20:01
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