Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,22 @@ STORAGE_DATABASE_TYPE=in-memory
# ====================
# MCP Configuration
# ====================
# MCP_GLOBAL_TIMEOUT=30000
# MCP_GLOBAL_TIMEOUT=30000


# Vector store type: qdrant, in-memory
#VECTOR_STORE_TYPE=in-memory

# Qdrant configuration (only used if VECTOR_STORE_TYPE=qdrant)
#VECTOR_STORE_HOST=localhost
#VECTOR_STORE_PORT=6333
#VECTOR_STORE_URL=http://localhost:6333
#VECTOR_STORE_API_KEY=your-qdrant-api-key

# Vector collection settings
# VECTOR_STORE_COLLECTION=default
# VECTOR_STORE_COLLECTION_NAME=your_collection_name
# VECTOR_STORE_DIMENSION=1536
# VECTOR_STORE_DISTANCE=Cosine
# VECTOR_STORE_ON_DISK=false
# VECTOR_STORE_MAX_VECTORS=10000
4 changes: 4 additions & 0 deletions memAgent/cipher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ llm:

# System prompt
systemPrompt: "You are a helpful AI assistant with memory capabilities. Please confirm you're working with OpenRouter API."




7 changes: 7 additions & 0 deletions src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ program

// Start the agent (initialize async services)
await agent.start();

// Print OpenAI embedder dimension after agent is started
if (agent.services && agent.services.embeddingManager) {
const embedder = agent.services.embeddingManager.getEmbedder('default');
} else {
console.log('No embeddingManager found in agent.services');
}
} catch (err) {
logger.error(
'Failed to load agent config:',
Expand Down
31 changes: 31 additions & 0 deletions src/core/brain/embedding/backend/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Embedding Backend Module Exports
*
* Central export point for all embedding backend implementations and types.
* Provides a clean interface for accessing embedding providers and utilities.
*
* @module embedding/backend
*/

// Export core types and interfaces
export type {
Embedder,
EmbeddingConfig,
OpenAIEmbeddingConfig,
BackendConfig,
EmbeddingResult,
BatchEmbeddingResult,
} from './types.js';

// Export error classes
export {
EmbeddingError,
EmbeddingConnectionError,
EmbeddingDimensionError,
EmbeddingRateLimitError,
EmbeddingQuotaError,
EmbeddingValidationError,
} from './types.js';

// Export backend implementations
export { OpenAIEmbedder } from './openai.js';
Loading