This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const { QdrantStore } = require('langchain-qdrant');
|
||||
const { OllamaLLM } = require('langchain-ollama');
|
||||
|
||||
async function main() {
|
||||
console.log('Initializing RAG agent...');
|
||||
// Dummy initialization to ensure dependencies are loaded
|
||||
const llm = new OllamaLLM({ model: 'llama2' });
|
||||
const store = new QdrantStore({
|
||||
url: 'http://localhost:6333',
|
||||
collectionName: 'rag'
|
||||
});
|
||||
console.log('Agent initialized with LLM and Qdrant store.');
|
||||
}
|
||||
|
||||
main().catch(err => {
|
||||
console.error('Error during agent initialization:', err);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user