gptme icon indicating copy to clipboard operation
gptme copied to clipboard

Add RAG for code and personal files

Open ErikBjare opened this issue 5 months ago • 0 comments

Source files could be:

  • your projects folder (with code)
  • your notes (in plaintext)
  • previously web-retrieved documents

Adding this feature would return gptme to its roots: an agent which has context about you and your projects, to intelligently and effectively assist in your work.

Needs

  • [ ] Configure where to look for source files
    • probably in config
    • could index the current working directory
      • would be problematic for large files, limit to git repos?
  • [ ] Exclude functionality
    • exclude binary files
    • respect git-ignores
  • [ ] Retrieval method
  • [ ] indexing?

Prompting

The model should be aware of its RAG abilities in the prompt (possibly listing source folder config), and provided a tool for using it.

Inspiration

  • PrivateGPT
  • LocalGPT

ErikBjare avatar Jan 20 '24 11:01 ErikBjare