Quick start. Index multiple documents in a repository using HuggingFace embeddings. Save them in Chroma and / or FAISS for recall. Choose OpenAI or Azure OpenAI APIs to get answers to your questions - Q&A with OpenAI and Azure OpenAI.
Update 7/31 - Two new samples added for OpenAI
Learn more about Direct Ask, Chain of Thought, Self Ask, and Forward Looking Active REtrieval aumented generation (FLARE) - Medium article - 7 min easy read
This project will help you learn the basics to -
Link to the video recording - https://youtu.be/VaShd-0UoGg
You can choose between OpenAI and Azure OpenAI for running the samples. Remember too update .env with keys and values. Back to all features
Now go ahead, and ask you questions about the two "State of the Union" speech pdfs and txt you had indexed (some ideas - when were the speeches made? What were the dates that the speeches were made? Summarize both speeches in 100 words or less. What did the president say about affordable care act?) Back to all features
NEW Sample - Your own ChatGPT will be as below Back to all features
New Sample - search your own website of the whole web. Feed the results to ChatGPT for summarizing or answering questions. Back to all features
To use the script, you will need to follow these steps:
git clone https://github.com/ushakrishnan/SearchWithOpenAI.git
and cd SearchWithOpenAI
into the cloned repository.pip install -r requirements.txt
playwright install
to install playwrightcp .env.template .env
. This is where you will set the following variables.streamlit run Home.py
Have fun creating making your own searchable library of PDFs.
This repository is for educational purposes only. However, if you find an error in the code, feel free to open an issue or submit a pull request.
If you encounter any issues or have suggestions for improvements, please open an issue in the GitHub repository. We appreciate your feedback and will do our best to address any problems.
This project is licensed under the MIT License. Feel free to modify and distribute the code as per the terms of the license.