Grand Diomande Research ยท Full HTML Reader

Search API Services

**Features:** - IRCP embedding-based semantic search - SQLite database integration - Conversation history search - Similarity scoring

Agents That Account for Themselves research note experiment writeup candidate score 24 .md

Full Public Reader

Search API Services

This directory contains all search-related backend services and APIs for the CC-TPO project.

Available Services

### ๐Ÿ” search_api.py
Primary search API for IRCP semantic search.

Features:
- IRCP embedding-based semantic search
- SQLite database integration
- Conversation history search
- Similarity scoring

Usage:

bash
python search_api.py
# Takes JSON input from stdin

---

### โšก search_api_optimized.py
Optimized version of the search API with performance improvements.

Features:
- Faster query processing
- Reduced memory footprint
- Batch processing support

---

### ๐Ÿš€ fast_search.py
Ultra-fast search implementation for quick lookups.

Features:
- Minimal overhead
- Quick response times
- Suitable for real-time applications

---

### ๐Ÿ”Œ instant_search.py
Instant search with caching and indexing.

Features:
- In-memory caching
- Pre-computed indices
- Sub-100ms response times

---

### ๐Ÿ”„ enhanced_ring_topology_search.py
Advanced search with ring topology awareness.

Features:
- Ring topology analysis
- Context-aware results
- DLM coordinate integration

---

### ๐ŸŒ ircp_web_search.py
Web interface for IRCP search.

Features:
- Web-based search UI
- Interactive results display
- Visual ring topology

---

### ๐Ÿ–ฅ๏ธ ircp_gui_search.py
GUI application for IRCP search.

Features:
- Desktop GUI
- Advanced search options
- Visual analytics

---

### ๐Ÿ–ง search_server.py
Standalone search server.

Features:
- HTTP API endpoints
- Multi-client support
- Request queuing

---

### ๐Ÿง  claude_semantic_search_system.py
Semantic search system for Claude conversation data.

Features:
- Claude-specific optimizations
- Conversation context preservation
- Smart result ranking

---

Integration

These services are used by:
- ircp-search-app: Via Python subprocess calls
- liquid-chat-backend: Via direct imports
- Command-line tools: Direct execution

Requirements

bash
pip install -r ../../requirements.txt

Common dependencies:
- numpy
- torch
- sentence-transformers
- sqlite3

Directory Structure

services/search-api/
โ”œโ”€โ”€ search_api.py              # Main search service
โ”œโ”€โ”€ search_api_optimized.py    # Optimized version
โ”œโ”€โ”€ fast_search.py             # Fast search
โ”œโ”€โ”€ instant_search.py          # Instant search
โ”œโ”€โ”€ enhanced_ring_topology_search.py  # Ring-aware search
โ”œโ”€โ”€ ircp_web_search.py         # Web interface
โ”œโ”€โ”€ ircp_gui_search.py         # GUI application
โ”œโ”€โ”€ search_server.py           # Standalone server
โ””โ”€โ”€ claude_semantic_search_system.py  # Claude-specific

Promotion Decision

Attach run IDs, datasets, metrics, and reproduction commands.

Source Anchor

Comp-Core/backend/cc-trajectory/legacy/cc-tpo-original/cc-tpo/services/search-api/README.md

Detected Structure

Method ยท Evaluation ยท Code Anchors ยท Architecture