Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/416rehman/unrealgpt
Retrieval-Augmented-Generation of over 1700+ pages of Unreal Engine documentation served through FAISS + OpenAI with LangChain
https://github.com/416rehman/unrealgpt
chatgpt documentation gpt langchain language-model machine-learning openai rag unreal unreal-engine
Last synced: 4 months ago
JSON representation
Retrieval-Augmented-Generation of over 1700+ pages of Unreal Engine documentation served through FAISS + OpenAI with LangChain
- Host: GitHub
- URL: https://github.com/416rehman/unrealgpt
- Owner: 416rehman
- Created: 2023-05-03T04:42:00.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-03T04:56:12.000Z (almost 2 years ago)
- Last Synced: 2024-05-20T22:23:13.478Z (9 months ago)
- Topics: chatgpt, documentation, gpt, langchain, language-model, machine-learning, openai, rag, unreal, unreal-engine
- Language: Python
- Homepage:
- Size: 3.89 MB
- Stars: 22
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UnrealGPT
This is a LangChain project with over 1700+ pages of documentation scraped from https://docs.unrealengine.com/5.1/en-US/
Data is scraped using BeautifulSoup and stored in the `data\scraping_cache` folder. If the data is already scraped, it will be loaded from the cache instead of scraping again to save time.
FAISS is used as the vector store to store the OpenAI embeddings. The FAISS index is stored in the `data` folder with the `.index` extension. If the index is already built, it will be loaded from the cache instead of building again to save time.
*To start fresh (scrapping and building the index again), delete the `data` folder.*
## How to run
All commands are run from the root of the repository.1. Clone this repository.
2. Run `pip install -r requirements.txt` to install the dependencies.
3. Set the `OPENAI_API_KEY` environment variable to your OpenAI API key on your system.4. Install [langchain-serve](https://github.com/jina-ai/langchain-serve) then run `lc-serve deploy local main`.
Visit `http://localhost:8080/docs` to interact with the API. (Make sure to provide the `OPENAI_API_KEY` in the request)
![img.png](https://i.imgur.com/inS8Fen.png)