Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guilhermebkel/semantic-search-llm-ai

🤖 That's a simple LLM semantic search that implements RAG concepts with help of LangChain and OpenAI API.
https://github.com/guilhermebkel/semantic-search-llm-ai

ai embeddings langchain openai-api puppeteer rag redis redis-vector-store retrieval-augmented-generation semantic-search-ai typescript

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        


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
```sh
npm run load
npm run ask
```