docs.rs failed to build codeprysm-search-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
codeprysm-search
Semantic code search with vector embeddings and Qdrant.
Part of the CodePrism project.
Features
- Semantic Search: Natural language queries using vector embeddings
- Hybrid Search: Combines semantic and keyword matching with score fusion
- GPU Acceleration: Metal (macOS) and CUDA (Linux/Windows) support
- Qdrant Integration: Scalable vector database for production use
- Code-Optimized Embeddings: Uses Jina embeddings tuned for code
Installation
[]
= "0.1"
# With GPU acceleration
= { = "0.1", = ["metal"] } # macOS
= { = "0.1", = ["cuda"] } # Linux/Windows
Usage
use ;
// Connect to Qdrant
let client = new.await?;
// Search for code
let results = client.search.await?;
for result in results
GPU Acceleration
GPU provides 7-9x faster inference for embedding generation:
| Device | Per-iteration | Notes |
|---|---|---|
| CPU | 170-180ms | Default |
| Metal GPU | 20-25ms | macOS Apple Silicon |
| CUDA GPU | 15-20ms | NVIDIA GPUs |
License
MIT License - see LICENSE