llmware-ai / llmware-ai/llmware

WARNING: No source added in .add_source_document

Open
#1,172 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
14.8k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

I followed the following LLMWare tutorial on YouTube and ran into the following error when using `Prompter.add_source_document()`.

`source = prompter.add_source_document(contracts_path, contract, query=key)`

This gives me a Warning that the source was not added.

What could be the issue?

My `contracts_path = ./docs/`. My files do have spaces in their names, but I doubt that would be an issue. Could it be the file-type suffix?

Tutorial Video Followed: https://www.youtube.com/watch?v=8aV5p3tErP0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the tutorial's `Prompter.add_source_document()` call with `contracts_path` set to `./docs/` and the referenced contract file. Check how the path, filename spaces, and file-type suffix are handled, then confirm the source is added without the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.