👎Deprecated since 0.2.1:
use brainwires-cognition with features “rag”, “spectral”, “code-analysis” instead
Modules§
- code_
analysis - Code relationship extraction (definitions, references, call graphs). Code relationships module for definition/reference tracking and call graphs.
- knowledge
- Knowledge graph, entities, thoughts, BKS/PKS, brain client.
- prelude
- Prelude for convenient imports.
- prompting
- Adaptive prompting techniques, clustering, temperature optimization. Adaptive Prompting Techniques
- rag
- RAG error types.
- spectral
- Spectral graph methods: diverse retrieval, clustering, centrality, sparsification. MSS-inspired spectral subset selection for diverse RAG retrieval.
Structs§
- Advanced
Search Request - Request to search with file type filters
- Brain
Client - Central orchestrator for all Open Brain storage operations.
- Call
Edge - An edge in the call graph representing a function/method call.
- Call
Graph Node - A node in the call graph
- Capture
Thought Request - Request to capture a new thought.
- Capture
Thought Response - Response after capturing a thought.
- Clear
Request - Request to clear the index
- Clear
Response - Response from clear operation
- Cluster
Summary - Summary of technique performance for a cluster
- Config
- Main configuration structure
- Contradiction
Event - A potential contradiction detected when inserting a new fact.
- Definition
- A definition of a symbol in the codebase.
- Delete
Thought Request - Request to delete a thought.
- Delete
Thought Response - Response after deleting a thought.
- Entity
- A named entity extracted from conversation
- Entity
Context - Context gathered for an entity
- Entity
Store - Entity store for tracking entities across a conversation
- Entity
Store Stats - Statistics about the entity store.
- Extraction
Result - Extraction result from a single message
- Find
Definition Request - Request to find the definition of a symbol at a given location
- Find
Definition Response - Response from find_definition
- Find
References Request - Request to find all references to a symbol
- Find
References Response - Response from find_references
- Generated
Prompt - Result of prompt generation
- GetCall
Graph Request - Request to get call graph for a function
- GetCall
Graph Response - Response from get_call_graph
- GetThought
Request - Request to get a single thought by ID.
- GetThought
Response - Response containing a full thought.
- GitSearch
Result - A single git search result
- Graph
Edge - An edge in the relationship graph.
- Graph
Node - A node in the relationship graph.
- Index
Request - Request to index a codebase
- Index
Response - Response from indexing operation
- Language
Stats - Statistics for a single programming language in the index.
- List
Recent Request - Request to list recent thoughts.
- List
Recent Response - Response from listing recent thoughts.
- Memory
Stats Request - Request for memory statistics (no parameters).
- Memory
Stats Response - Response with memory statistics.
- Prompt
Generator - Generates optimized prompts based on task characteristics
- Prompting
Learning Coordinator - Coordinates learning and promotion of technique effectiveness
- Query
Request - Request to query the codebase
- Query
Response - Response from query operation
- RagClient
- Main client for interacting with the RAG system
- Reference
- A reference to a symbol from another location in the codebase.
- Relationship
Graph - Relationship graph for entity context
- Seal
Processing Result - Result of SEAL query processing
- Search
GitHistory Request - Request to search git history
- Search
GitHistory Response - Response from git history search
- Search
Knowledge Request - Request to search the knowledge store (PKS/BKS).
- Search
Knowledge Response - Response from a knowledge search.
- Search
Memory Request - Request to search memory.
- Search
Memory Response - Response from a memory search.
- Spectral
Reranker - Spectral reranker using greedy log-determinant maximization.
- Statistics
Request - Request to get statistics about the index
- Statistics
Response - Statistics about the indexed codebase
- Symbol
Id - A unique identifier for a symbol in the codebase.
- Task
Cluster - A task cluster identified by semantic similarity (SEAL-enhanced)
- Task
Cluster Manager - Manages task clustering
- Technique
Library - Library of all prompting techniques
- Technique
Metadata - Metadata for each technique (SEAL-enhanced)
- Technique
Stats - Statistics for a technique in a specific cluster
- Temperature
Optimizer - Manages adaptive temperature selection per task cluster
- Temperature
Performance - Tracks performance metrics for a specific temperature setting
- Thought
- A persistent thought stored in the Open Brain.
Enums§
- Complexity
Level - Complexity level for SEAL quality filtering
- Contradiction
Kind - Why two stored facts were flagged as a potential contradiction.
- Edge
Type - Types of edges in the relationship graph.
- Entity
Type - Types of entities tracked in the knowledge graph.
- Indexing
Mode - Indexing mode used
- Prompting
Technique - 15 prompting techniques from the paper (Table 1)
- RagError
- Main error type for the RAG system
- Reference
Kind - Kind of reference to a symbol
- Relationship
- Relationship between entities
- Symbol
Kind - Kind of symbol in the codebase
- Task
Characteristic - Task characteristics for technique matching
- Technique
Category - Prompting technique categories from the paper
- Thought
Category - Category of a thought, used for filtering and organisation.
- Thought
Source - How a thought was captured.
- Visibility
- Visibility/access modifier for a symbol
Functions§
- cosine_
similarity - Compute cosine similarity between two vectors