Skip to content

austinm911/prompts

Repository files navigation

Prompts Collector

Giving the right context to AI models is tough. This repo is an idea to programmatically fetch code from libraries directly to use for AI context.

The general thought is something like this repo could generate AI RAG-friendly text of libraries you're interested in and save them into your own projects.

The inspiration for this is:

Current Problems

  • Cursor RAG (@docs) seems to work well for libraries that are well documented. But what if they are not? What if the source code may be helpful too?
  • Everyone's project is a mismash of different tech stacks. What if you want to follow best practices and need specific context for your stack?
    • Thought: You should be able to build a "directory" containing all of your libraries and your RAG-friendly context files.
    • Thought: Maybe you can even summarize all of these files into a single file using AI to generate the summarized file, containing the most important details

Getting Started

# The repo uses bun for its CLI runner
bun install repomix

Right now, you can copy the index.ts file (using Bun) and run it. It will fetch the AI RAG-friendly text & code from the libraries defined in the config and save it to the repomix folder.

Feel free to modify define new libraies and custom config.

TODO

  • WIP: Check for the date, skip if not older than 7 days (customizable)

Ideas

About

Exploration of generating AI-friendly RAG text for your favorite libraries

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors