https://github.com/haardikk21/aiware
A CLI-based chatbot that fine-tunes itself in real time by learning from your local Git repo. Ask the chatbot about codebase details for faster development and bug fixes, and have it auto-update on each commit.
https://github.com/haardikk21/aiware
chatbot gpt javascript langchain open-ai openai prisma with-prisma with-vectorstores
Last synced: about 1 year ago
JSON representation
A CLI-based chatbot that fine-tunes itself in real time by learning from your local Git repo. Ask the chatbot about codebase details for faster development and bug fixes, and have it auto-update on each commit.
- Host: GitHub
- URL: https://github.com/haardikk21/aiware
- Owner: haardikk21
- License: mit
- Created: 2023-08-01T20:05:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T22:16:17.000Z (over 2 years ago)
- Last Synced: 2025-03-31T08:43:42.077Z (over 1 year ago)
- Topics: chatbot, gpt, javascript, langchain, open-ai, openai, prisma, with-prisma, with-vectorstores
- Language: TypeScript
- Homepage:
- Size: 9.21 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A.I.Ware

A CLI-based chatbot that fine-tunes itself in real time by learning from your local Git repo. Ask the chatbot about codebase details for faster development and bug fixes, and have it auto-update on each commit.
## Requirements
- Docker
- Node.js
## Workflow
Install dependencies using `pnpm install`
1. Copy `.env.sample` to `.env`
1.1. Specify `OPENAI_API_KEY` and `DEFAULT_REPO_PATH` in the `.env`
2. Start a new Postgres database locally using `pnpm db:up` which will also install the `pgvector` extension.
3. Run `pnpm db:push` to sync the schema with your database
4. Run `pnpm dev` to start the CLI
Once started:
1. Provide a repo path if different from `DEFAULT_REPO_PATH` - else leave empty
2. If the repo is new, it will embed the codebase into Postgres using OpenAI Embeddings
3. Ask questions about your codebase in the chatbot
4. A.I.Ware will check for new commits to delete old embeddings of changed files and re-embed them periodically so it always has the latest context.
## License
This repo is licensed under the [MIT License](./LICENSE).