Building a Retrieval-Augmented Generation Chatbot with SvelteKit and Xata Vector Search

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • xata-rag-chatbot

    A demo of your own RAG Chatbot with Xata, SvelteKit, LiteLLM, OpenAI and Vercel.

  • Resource Link GitHub Repo https://github.com/rishi-raj-jain/xata-rag-chatbot SvelteKit with Xata https://xata.io/docs/getting-started/sveltekit Xata Vector Search https://xata.io/docs/sdk/vector-search How to Prompt Llama 2 https://huggingface.co/blog/llama2#how-to-prompt-llama-2 SvelteKit AI SDK https://sdk.vercel.ai/docs/guides/frameworks/sveltekit

  • ai

    Build AI-powered applications with React, Svelte, Vue, and Solid

  • import { experimental_buildLlama2Prompt } from 'ai/prompts'; // Now use Replicate LLAMA 70B streaming to perform the autocompletion with context const response = await replicate.predictions.create({ // You must enable streaming. stream: true, // The model must support streaming. See https://replicate.com/docs/streaming model: 'meta/llama-2-70b-chat', // Format the message list into the format expected by Llama 2 // @see https://github.com/vercel/ai/blob/99cf16edf0a09405d15d3867f997c96a8da869c6/packages/core/prompts/huggingface.ts#L53C1-L78C2 input: { prompt: experimental_buildLlama2Prompt([ { // create a system content message to be added as // the llama2prompt generator will supply it as the context with the API role: 'system', content: systemContext }, { // create a system instruction // make sure to wrap code blocks with ``` {% endraw %} so that the svelte markdown picks it up correctly role: 'assistant', content: {% raw %}`When creating repsonses sure to wrap any code blocks that you output as code blocks and not text so that they can be rendered beautifully.`{% endraw %} }, // also, pass the whole conversation! ...messages ]) } }); {% raw %}

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • pgzx

    Create PostgreSQL extensions using Zig.

  • Resource Link GitHub Repo https://github.com/rishi-raj-jain/xata-rag-chatbot SvelteKit with Xata https://xata.io/docs/getting-started/sveltekit Xata Vector Search https://xata.io/docs/sdk/vector-search How to Prompt Llama 2 https://huggingface.co/blog/llama2#how-to-prompt-llama-2 SvelteKit AI SDK https://sdk.vercel.ai/docs/guides/frameworks/sveltekit

  • vercel

    Develop. Preview. Ship.

  • A Vercel Account

  • replicate-javascript

    Node.js client for Replicate

  • import { experimental_buildLlama2Prompt } from 'ai/prompts'; // Now use Replicate LLAMA 70B streaming to perform the autocompletion with context const response = await replicate.predictions.create({ // You must enable streaming. stream: true, // The model must support streaming. See https://replicate.com/docs/streaming model: 'meta/llama-2-70b-chat', // Format the message list into the format expected by Llama 2 // @see https://github.com/vercel/ai/blob/99cf16edf0a09405d15d3867f997c96a8da869c6/packages/core/prompts/huggingface.ts#L53C1-L78C2 input: { prompt: experimental_buildLlama2Prompt([ { // create a system content message to be added as // the llama2prompt generator will supply it as the context with the API role: 'system', content: systemContext }, { // create a system instruction // make sure to wrap code blocks with ``` {% endraw %} so that the svelte markdown picks it up correctly role: 'assistant', content: {% raw %}`When creating repsonses sure to wrap any code blocks that you output as code blocks and not text so that they can be rendered beautifully.`{% endraw %} }, // also, pass the whole conversation! ...messages ]) } }); {% raw %}

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Create your own content management system with Remix and Xata

    4 projects | dev.to | 7 Jun 2024
  • Next.js starter template

    1 project | dev.to | 28 May 2024
  • Next.js starter template

    1 project | dev.to | 24 Apr 2024
  • How to deploy a Next.js application to GitLab Page

    2 projects | dev.to | 19 Apr 2024
  • What I have in my portfolio 😎

    1 project | dev.to | 2 Apr 2024