import { QdrantClient } from '@qdrant/js-client-rest';

const QDRANT_URL = process.env['QDRANT_URL'] ?? '';
const QDRANT_API_KEY = process.env['QDRANT_API_KEY'] ?? '';

export const qdrant = new QdrantClient({
  url: QDRANT_URL,
  ...(QDRANT_API_KEY ? { apiKey: QDRANT_API_KEY } : {}),
});

export const QDRANT_COLLECTIONS = {
  SOURCE_CHUNKS: 'source_chunks',
  TOPIC_SUMMARIES: 'topic_summaries',
} as const;
