This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# call this script with the command: python3 ask_questions_on_codebase.py | |
from langchain.document_loaders import GitLoader | |
from langchain.indexes import VectorstoreIndexCreator | |
import os | |
# if this fails, just use the bash command export OPENAI_API_KEY=YOUR_KEY_HERE | |
os.environ['OPENAI_API_KEY'] = 'YOUR_KEY_HERE' | |
os.environ['OPENAI_MODEL'] = 'text-embedding-ada-002' # specify your model here |