mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-28 19:05:31 +02:00
Add support for RAG
This commit is contained in:
parent
2156c94449
commit
b80eaffbe9
22 changed files with 552 additions and 900 deletions
|
|
@ -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}`);
|
||||
}
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue