Add support for RAG

This commit is contained in:
Ramnique Singh 2025-04-30 23:36:49 +05:30 committed by akhisud3195
parent 2156c94449
commit b80eaffbe9
22 changed files with 552 additions and 900 deletions

View file

@ -2,8 +2,10 @@ import '../lib/loadenv';
import { qdrantClient } from '../lib/qdrant';
(async () => {
await qdrantClient.deleteCollection('embeddings');
const { collections } = await qdrantClient.getCollections();
console.log(collections);
try {
const result = await qdrantClient.deleteCollection('embeddings');
console.log(`Delete qdrant collection 'embeddings' completed with result: ${result}`);
} catch (error) {
console.error(`Unable to delete qdrant collection 'embeddings': ${error}`);
}
})();