A web application for querying and updating chunks in your Pinecone vector database.
- 🔍 Query Chunks: Search chunks by module, name, path, or semantic text search
- ✏️ Edit Chunks: Update chunk content and metadata (summary, tags, etc.)
- 📊 View Details: Inspect individual chunk information
- 🎨 Modern UI: Clean and intuitive user interface
- Node.js (v18 or higher)
- npm or yarn
- Pinecone account with API key
- Voyage AI API key (for generating embeddings when updating content)
- Install dependencies for all packages:
npm run install:all- Configure environment variables:
Copy the example environment file and fill in your credentials:
cp server/.env.example server/.envEdit server/.env with your configuration:
PINECONE_API_KEY=your_pinecone_api_key_here
PINECONE_INDEX=your_index_name_here
VOYAGE_API_KEY=your_voyage_api_key_here
VOYAGE_EMBEDDING_MODEL=voyage-3
PORT=3102Run both frontend and backend servers:
npm run dev- Frontend: http://localhost:3001
- Backend API: http://localhost:3102
- Build all packages:
npm run build:all- Start the servers:
npm start-
Open the application in your browser (http://localhost:3001)
-
Use the query form to search for chunks:
- Module: Filter by module name
- Name: Filter by document name
- Path: Filter by document path
- Query Text: Semantic search using text similarity
- Max Results: Limit the number of results returned
-
Click "Search" to execute the query
-
Results will be displayed in a list below the form
-
Click on a chunk from the search results (or click the "Edit" button)
-
The chunk editor will open with:
- Content: Editable text area for chunk content
- Summary: Add or edit a summary
- Tags: Add comma-separated tags
- Read-only metadata: Module, name, path, chunk index, etc.
-
Make your changes and click "Save Changes"
-
The chunk will be updated in Pinecone (embedding will be regenerated if content changed)
GET /api/health
POST /api/chunks/query
Body: {
module?: string;
name?: string;
path?: string;
queryText?: string;
topK?: number;
page?: number;
pageSize?: number;
}
GET /api/chunks/:chunkId
PUT /api/chunks/:chunkId
Body: {
pageContent?: string;
metadata?: {
summary?: string;
tags?: string[];
[key: string]: any;
}
}
GET /api/stats
pinecone-update/
├── server/ # Backend Express server
│ ├── src/
│ │ ├── routes/ # API routes
│ │ ├── services/ # Business logic
│ │ └── types/ # TypeScript types
│ └── .env # Environment variables
├── web/ # Frontend React app
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── services/ # API client
│ │ └── types/ # TypeScript types
└── package.json # Root package.json
- Framework: Express.js with TypeScript
- Vector DB: Pinecone
- Embeddings: Voyage AI (via LangChain)
- Port: 3102 (configurable)
- Framework: React 18 with TypeScript
- Build Tool: Vite
- Styling: SCSS
- Port: 3001
- When updating chunk content, the embedding is automatically regenerated using Voyage AI
- Metadata-only updates don't require embedding regeneration
- The application supports partial matching for module, name, and path filters
- Semantic search uses vector similarity when query text is provided
- Verify your Pinecone API key and index name in
.env - Check that the Pinecone index exists and is accessible
- Ensure Voyage AI API key is configured if you plan to update content
- Try using broader search criteria
- Check that your Pinecone index contains data
- Verify metadata field names match your index structure
- Ensure the chunk ID is valid
- Check that Voyage AI API key is configured
- Verify network connectivity to Pinecone and Voyage AI services
MIT