18 lines
553 B
JavaScript
18 lines
553 B
JavaScript
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);
|
|
}); |