CmdSmith Project Log
**Goal:** Build a "Fill-in-the-Blank" CLI generator for researchers using RAG (Documentation) and LLMs (Structured Outputs).
CmdSmith Project Log
Goal: Build a "Fill-in-the-Blank" CLI generator for researchers using RAG (Documentation) and LLMs (Structured Outputs). Stack: Python (FastAPI), LangChain (RAG), ChromaDB (Vector Store), OpenAI GPT-5.1/Local LLM, HTML/JS (Frontend).
1. Initial Setup
A. Project Folder & Virtual Environment
Never install libraries globally. We use a contained venv.
# 1. Create virtual environment
python3 -m venv venv
# 2. Activate the environment
source venv/bin/activate
B. Dependencies
Install them:
pip install -r requirements.txt
C. API Keys
Create a file named .env in the project root:
OPENAI_API_KEY=sk-api-key
2. Code Implementation
A. The Ingestion Script (ingest.py)
Purpose: Reads PDF/TXT manuals and saves them to ./vector_db.
B. The Backend (main.py)
Purpose: API that takes user input, retrieves docs, and returns structured JSON. Key Feature: Uses specialized system prompt and Strict JSON Schema.
C. The Frontend (index.html)
- Use the "Dark Mode" theme.
3. Workflow: How to Update Documentation
- Find Manual: Save the tool's manual as a PDF (e.g.,
samtools.pdf). - Place: Put it in the
docs/folder. - Alternatively, scrape command descriptions using
scrape.py. - Run Ingest:
This updates thesource venv/bin/activate python ingest.pyvector_dbfolder.
4. Usage: Running the Tool
- Open Terminal and go to project folder.
- Activate Environment:
source venv/bin/activate - Start Backend:
(Wait for "Application startup complete")python main.py - Start Frontend:
- Open
index.htmlin web browser (Chrome/Safari).
- Open
- Use:
- Start chatting
Related Documents
Comprehensive AI Assistant Tools Reference
title: Comprehensive AI Assistant Tools Reference
iOS Deployment Guide
**Introduction:** Deploying the Krome app to iOS (iPhone/iPad) is a bit more involved due to Apple’s ecosystem requirements. This guide will cover setting up an iOS development environment, building the Tauri app for iOS, publishing on Apple’s App Store, alternative distribution options like TestFlight or Enterprise, the App Store review process, common pitfalls, and CI/CD for iOS. As before, we assume you know general development concepts but are new to iOS specifics.
How to Add Resources to Your FastMCP Server
In the Model Context Protocol (MCP), there are three main capabilities:
Continue.dev MCP Integration Setup Guide
Edit your Continue.dev configuration file: