/chat-your-code

Ask questions about your codebase using GPT

Primary LanguagePythonMIT LicenseMIT

chat-your-code

Chat with your codebase.

Embeds all .py files in a given directory and lets you query them. Finds cosine similiar source files and stuffs them into ChatGPT's prompt.

Export your API key as OPENAI_API_KEY and run python main.py.

For more acurate answers change model to GPT4.

TODO:

  • make better use of context window
  • play around with prompt
  • chat interactively on command line
  • look into how chat history is persisted
  • include metadata of source files (e.g. filenames, line numbers)