That's a simple LLM semantic search that implements RAG concepts with help of LangChain and OpenAI API.
- Typescript
- LangChain
- OpenAI API
- Redis Vector Store
- Puppeteer
-
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")
- Clone this repository
- Run the following commands
npm run load
npm run ask