Skip to content

🤖 That's a simple LLM semantic search that implements RAG concepts with help of LangChain and OpenAI API.

Notifications You must be signed in to change notification settings

guilhermebkel/semantic-search-llm-ai

Repository files navigation

Semantic Search LLM AI 🤖

mockup

📌 Overview

That's a simple LLM semantic search that implements RAG concepts with help of LangChain and OpenAI API.

🔧 Technologies

  • Typescript
  • LangChain
  • OpenAI API
  • Redis Vector Store
  • Puppeteer

⚠️ In hand polyfills for NodeJS under v18

  • ReadableStream

    • Path: node_modules/@langchain/core/dist/utils/sax-js/sax.cjs
    • Lib: npm install web-streams-polyfill
    • Import: const { ReadableStream } = require("web-streams-polyfill")
  • ReadableStream

    • Path: node_modules/@langchain/core/dist/utils/stream.cjs
    • Lib: npm install web-streams-polyfill
    • Import: const { ReadableStream } = require("web-streams-polyfill")
  • fetch

    • Path: node_modules/@langchain/core/dist/utils/async_caller.cjs
    • Lib: npm install node-fetch
    • Import: const fetch = require("node-fetch")

🚀 Getting started

  1. Clone this repository
  2. Run the following commands
npm run load
npm run ask

About

🤖 That's a simple LLM semantic search that implements RAG concepts with help of LangChain and OpenAI API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published