Skip to content

Add Upstash RAG Chat#22

Open
ogzhanolguncu wants to merge 4 commits into
Nutlope:mainfrom
ogzhanolguncu:add-upstash-rag-chat
Open

Add Upstash RAG Chat#22
ogzhanolguncu wants to merge 4 commits into
Nutlope:mainfrom
ogzhanolguncu:add-upstash-rag-chat

Conversation

@ogzhanolguncu

@ogzhanolguncu ogzhanolguncu commented Aug 21, 2024

Copy link
Copy Markdown

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 },
  }),
});

@vercel

vercel Bot commented Aug 21, 2024

Copy link
Copy Markdown

@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