codeprysm-backend 0.1.0

Backend abstraction layer for CodePrism
docs.rs failed to build codeprysm-backend-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.

codeprysm-backend

Crates.io Documentation License: MIT

Backend abstraction layer for CodePrism.

Part of the CodePrism project.

Features

  • Unified API: Single interface for graph and search operations
  • Async Support: Full async/await support with Tokio
  • Lazy Loading: On-demand loading of graph partitions
  • Connection Pooling: Efficient Qdrant connection management

Installation

[dependencies]

codeprysm-backend = "0.1"



# With GPU acceleration

codeprysm-backend = { version = "0.1", features = ["metal"] }  # macOS

codeprysm-backend = { version = "0.1", features = ["cuda"] }   # Linux/Windows

Usage

use codeprysm_backend::Backend;
use std::path::Path;

// Create a backend instance
let backend = Backend::new(
    Path::new("/path/to/repo"),
    "http://localhost:6334",
).await?;

// Search for code
let results = backend.search("authentication handler", 10).await?;

// Get node details
let node = backend.get_node(&node_id).await?;

// Find relationships
let relationships = backend.get_relationships(&node_id).await?;

Architecture

The backend coordinates between:

  • codeprysm-core: Graph storage and traversal
  • codeprysm-search: Vector search and embeddings
  • codeprysm-config: Configuration management
┌─────────────────────────────────────────┐
│           codeprysm-backend             │
├─────────────┬─────────────┬─────────────┤
│ codeprysm-  │ codeprysm-  │ codeprysm-  │
│    core     │   search    │   config    │
└─────────────┴─────────────┴─────────────┘

License

MIT License - see LICENSE