This project shows the use of OpenAI embeddings to extend the capabilities of ChatGPT to answer questions about specific technical documentations.
- OpenAI API Key
- Setup a python venv and install the requirements in requirements.txt
Put Documents (.pdf or .docx) in the data/raw folder and run create_embeddings.py to create embeddings
Run embedding_search.py to ask questions about the documents you created embeddings for. You may have to change the system string in embedding_search.py to expand answers to non technical documentations.
This code is an adaption from the examples provided by OpenAI here: https://github.com/openai/openai-cookbook/tree/main/examples