Skip to main content
Glama
common.ts630 B
/** * Common Configuration * * Shared configuration settings used across different database types. */ import dotenv from 'dotenv'; // Load environment variables dotenv.config(); // Database type enum export enum DatabaseType { QDRANT = 'qdrant', CHROMA = 'chroma' } // Collection name for storing documents - shared between Qdrant and Chroma export const COLLECTION_NAME = process.env.COLLECTION_NAME || 'vito'; // Determine which database type to use based on environment variable export const DATABASE_TYPE = (process.env.DATABASE_TYPE?.toLowerCase() === 'chroma') ? DatabaseType.CHROMA : DatabaseType.QDRANT;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hadv/wisdomforge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server