-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugSomething isn't workingSomething isn't workingtrackedIssue is tracked by projectIssue is tracked by project
Description
Do you need to file an issue?
- I have searched the existing issues and this bug is not already filed.
- I believe this is a legitimate bug, not just a question or feature request.
Describe the bug
When i upload texts with "file_sources" with the path /documents/texts.
During the upsert, the "file_source" value is not inserted into the "doc_name" column of the table "lightrag_doc_full"
The persistence code is :
"upsert_doc_full": """INSERT INTO LIGHTRAG_DOC_FULL (id, content, workspace)
VALUES ($1, $2, $3)
ON CONFLICT (workspace,id) DO UPDATE
SET content = $2, update_time = CURRENT_TIMESTAMP
""",
and :
elif is_namespace(self.namespace, NameSpace.KV_STORE_FULL_DOCS):
for k, v in data.items():
upsert_sql = SQL_TEMPLATES["upsert_doc_full"]
_data = {
"id": k,
"content": v["content"],
"workspace": self.workspace,
}
await self.db.execute(upsert_sql, _data)
_data should contain the "doc_name" value.
Steps to reproduce
Upload texts with file_sources.
Expected Behavior
the column "doc_name" should have the file_source value of the inserted doc.
LightRAG Config Used
Paste your config here
like the sample :)
Logs and screenshots
Additional Information
- LightRAG Version: 1.4.9.1
- Operating System: Windows / DevContainer Ubuntu
- Python Version: 3.12
- Related Issues:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtrackedIssue is tracked by projectIssue is tracked by project