This repository was archived by the owner on Sep 7, 2025. It is now read-only.
Conversation
…milarity search integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request starts the jAI project and sets up the "chat" route - the first of other routes which will power different aspect of the
jargons.devecosystem.About jAI
jAI is an AI-powered assistant for jargons.dev, designed to provide engaging, developer-friendly explanations of technical terms. Built with OpenAI models and a RAG (Retrieval-Augmented Generation) approach, jAI enhances the developer experience by offering clear, concise, and slightly witty explanations with relevant code examples.
jAI's personality as an assistance is configured via its Prompt which specifically gives it a friendly, slightly witty and developer relatable personality.
See jAI's Prompt below
About Chat route -
POST /api/chatThis is the route that handles general chat related to technical jargons in the dictionary, it handles user queries by retrieving context from Qdrant vector database/store already filled with embedding of all current words in the jargons.dev dictionary and generating AI responses delivering by streaming.
The route consumes the Vercel AI SDK, hence it is recommended to use the client-side component for thesame SDK.. This can be https://www.npmjs.com/package/@ai-sdk/react for example.
Notable Changes Made
langchainai@langchain/openai@langchain/qdrant/api/chatroute which does the following to fulfil its functionality...messageproperty from the incoming request body and makes out the current message out of the collection of message history incases where there's been other message in the same conversationdev/seedscript to help populate/see the vector database/store - this script is intended to be ran 1 time only to take all word and definition from the jargons.dev dictionary; added them to the vector database/store as embeddings. This script perform the following operation to fulfil its functionality/devlangchainLarge JSON Payloaderror.Related Issue
jargonsdev/roadmap#5
✨