You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try{constragApplication=awaitnewRAGApplicationBuilder().setModel(newOllama({modelName: "llama3.1",baseUrl: 'http://localhost:11434'})).setEmbeddingModel(newOllamaEmbeddings({model: 'nomic-embed-text',baseUrl: 'http://localhost:11434'})).setVectorDatabase(newHNSWDb()).build();constloader1=newWebLoader({urlOrContent: 'https://www.threads.net/@zuck'})constrespo=awaitragApplication.addLoader(loader1);constresponse=awaitragApplication.query('Tell me more about this user and his work');res.status(201).json({message: 'Request submitted successfully', response });}catch(error){console.error('Error in submitRequest:',error);res.status(500).json({error: 'Internal Server Error'});}
output
// 20250105171719// http://localhost:8080/api/v1/query
{
"message": "Request submitted successfully",
"response": {
"id": "1f862dc1-44c9-4a86-9224-49011bca986d",
"timestamp": "2025-01-05T22:17:12.374Z",
"content": "I don't have any information about a specific user or their work. This conversation has just started, and I haven't received any previous messages or requests for information. If you'd like to share more details or ask a question, I'll do my best to provide an answer based on what I know.",
"actor": "AI",
"sources": [
],
"tokenUse": {
"inputTokens": "UNKNOWN",
"outputTokens": "UNKNOWN"
}
}
}
🐛 Describe the bug
output
cc: @adhityan
The text was updated successfully, but these errors were encountered: