Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local path loader issue #160

Closed
RaghvindYadav opened this issue Nov 7, 2024 · 4 comments
Closed

local path loader issue #160

RaghvindYadav opened this issue Nov 7, 2024 · 4 comments
Assignees
Labels
bug Something isn't working stale

Comments

@RaghvindYadav
Copy link

I tried the following code.

 const ragApplication = await new RAGApplicationBuilder()
        .setModel(new Ollama({ modelName: llamaVersion, baseUrl: llamaHostUrl }))
        .setEmbeddingModel(new OllamaEmbeddings({ model: 'nomic-embed-text', baseUrl: llamaHostUrl }))
        .setVectorDatabase(new HNSWDb())
        .build();

    ragApplication.addLoader(new UrlLoader({url: "https://www.forbes.com/profile/elon-musk"}));
  
    const ragResponse = await ragApplication.query('What is the net worth of Elon Musk today?');
 
    console.log('response: ',ragResponse);

output:

response:  {
  id: '6b8b201d-a839-470e-b675-5603891934e8',
  timestamp: 2024-11-07T13:10:45.224Z,
  content: "I don't have the most up-to-date information on Elon Musk's current net worth. My knowledge cutoff is December 2023, and I may not have reflected any recent changes in his wealth. For the most accurate and current information, I recommend checking reputable financial news sources or Elon Musk's official social media accounts.",
  actor: 'AI',
  sources: [],
  tokenUse: { inputTokens: 'UNKNOWN', outputTokens: 'UNKNOWN' }
}

Not working with any url for me. Help me to fix this.

@adhityan adhityan added the bug Something isn't working label Nov 10, 2024
@adhityan
Copy link
Collaborator

Could you run the app with debug logs enabled? This will let you know why the loader did not pick up the url.

You can enable debug logs by setting the environment variable DEBUB like so -

DEBUG=embedjs:*

@adhityan
Copy link
Collaborator

Please post back here the output of the app with the debug logs enabled so we know what went.

Copy link

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Nov 25, 2024
Copy link

This issue was closed because it has been inactive for 30 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants