Lukas Selch
537e10303d
Fixed formatting
2025-02-17 15:25:50 +01:00
Lukas Selch
86f5a88db7
Fixed wrong variable name
2025-02-17 15:20:23 +01:00
Lukas Selch
7913304007
Fixed broken ainsert_custom_kg()
2025-02-17 15:12:35 +01:00
MdNazishArmanShorthillsAI
c2ff17d343
Added system prompt support in all modes
2025-02-17 16:45:00 +05:30
zrguo
9a1603f594
Merge pull request #795 from YanSte/make-clear-what-implemented-or-not
...
Enhancing ABC Enforcement and Standardizing Subclass Implementations
2025-02-17 16:03:22 +08:00
zrguo
fce24f7611
Merge pull request #797 from danielaskdd/add-env-settings
...
Add the token size truncation for local query and token size setting by env
2025-02-17 15:00:07 +08:00
ArnoChen
ca85b82a47
implement endpoint to retrieve document statuses
2025-02-17 01:03:24 +08:00
Yannick Stephan
abad9f235c
make value on str enum
2025-02-16 15:54:54 +01:00
yangdx
8f6e9fcf50
Merge branch 'main' into add-env-settings
2025-02-16 22:34:39 +08:00
Yannick Stephan
a1607bbcb9
Merge remote-tracking branch 'origin/main' into make-clear-what-implemented-or-not
...
# Conflicts:
# lightrag/base.py
# lightrag/kg/json_doc_status_impl.py
# lightrag/kg/mongo_impl.py
# lightrag/kg/postgres_impl.py
2025-02-16 15:29:16 +01:00
Yannick Stephan
9a5fbaaa5f
removed unused methods
2025-02-16 14:50:04 +01:00
ArnoChen
893b645506
unify doc status retrieval with get_docs_by_status
2025-02-16 21:28:58 +08:00
zrguo
f868c1da78
Merge branch 'main' into code-cleaning
2025-02-16 19:41:05 +08:00
yangdx
601df31edf
feat: move query-related settings to env file for better configuration
...
• Add env vars for token and chunk settings
• Add token count logging for prompts
• Add token count logging for context
• Move hardcoded values to env variables
• Improve logging clarity and consistency
2025-02-16 19:26:57 +08:00
Yannick Stephan
eaf1d553d2
improved typing
2025-02-15 22:37:12 +01:00
Yannick Stephan
621540a54e
cleaned code
2025-02-15 00:23:14 +01:00
Yannick Stephan
805da7b95b
cleaned code
2025-02-15 00:02:24 +01:00
Yannick Stephan
7e526d3436
cleaned code
2025-02-14 23:52:05 +01:00
Yannick Stephan
e6520ad6a2
added typing
2025-02-14 23:49:39 +01:00
Yannick Stephan
cf6e327bf4
added type and cleaned code
2025-02-14 23:42:52 +01:00
Yannick Stephan
dfa8681924
code clean
2025-02-14 23:33:59 +01:00
Yannick Stephan
66f555677a
cleaning the message and project no needed
2025-02-14 23:31:27 +01:00
Yannick Stephan
28c8443ff2
cleaning the mess
2025-02-14 22:50:49 +01:00
ArnoChen
a600beb619
implement MongoDB support for VectorDB storage. optimize existing MongoDB implementations
2025-02-15 00:38:41 +08:00
zrguo
6a5e92aeed
Merge pull request #769 from YanSte/fix-delete
...
Fixe the delete
2025-02-14 09:42:43 +08:00
zrguo
1841c8d536
Merge branch 'main' into fix-backends
2025-02-14 09:39:11 +08:00
Yannick Stephan
cf0b9ce6be
fixed the delete
2025-02-13 20:52:33 +01:00
ArnoChen
0f12b400e4
disabled check_storage_env_vars
...
because the configurations of many backends can be read from the configuration file instead of environment variables.
2025-02-14 02:50:11 +08:00
ArnoChen
637e7efa83
add the missing MongoDocStatusStorage
2025-02-14 02:49:00 +08:00
yangdx
e1d9dba20d
Fix typos in documentation tree structure and storage implementation names
...
• Correct menu tree structure in splash screen
• Fix MilvusVectorDBStorage typo
• Update storage env requirements
2025-02-13 20:40:29 +08:00
zrguo
dea6f4f288
Merge branch 'main' into select-datastore-in-api-server
2025-02-13 20:03:38 +08:00
ArnoChen
42d90f2b16
rename jsondocstatus to json_doc_status for consistency
2025-02-13 18:38:12 +08:00
ArnoChen
6896d4ab21
add pre-built graph viewer files
...
format
a
a
2025-02-13 18:05:50 +08:00
ArnoChen
c674905a98
use KnowledgeGraph typed dict for graph API response
2025-02-13 17:32:51 +08:00
ArnoChen
e4562c761c
fix typo
2025-02-13 17:32:05 +08:00
yangdx
5ad3555f4c
docs: add MongoDB storage support and improve storage client comment
2025-02-13 14:31:12 +08:00
yangdx
7017f114e1
Merge branch 'main' into select-datastore-in-api-server
2025-02-13 11:25:52 +08:00
ArnoChen
c50c581767
Merge branch 'main' into graph-viewer-webui
2025-02-13 04:42:57 +08:00
yangdx
ed73ea4076
Fix linting
2025-02-13 04:12:00 +08:00
yangdx
f01f57d0da
refactor: make cosine similarity threshold a required config parameter
...
• Remove default threshold from env var
• Add validation for missing threshold
• Move default to lightrag.py config init
• Update all vector DB implementations
• Improve threshold validation consistency
2025-02-13 03:25:48 +08:00
yangdx
4c39cf399d
refactor: move database connection pool initialization to lifespan of FastAPI
...
- Add proper database connection lifecycle management
- Add connection pool cleanup in FastAPI lifespan
2025-02-13 01:11:09 +08:00
yangdx
274cd73a8f
refactor: improve storage initialization with named instances to aid logging
...
• Add storage names to instance list
• Use tuples to store name with instance
• Update type hints for storage instances
• Improve logging with actual storage names
• Clean up loop variable naming
2025-02-12 22:55:47 +08:00
yangdx
7b79427097
refactor: improve database initialization by centralizing db instance injection
...
- Move db configs to separate methods
- Remove db field defaults in storage classes
- Add _initialize_database_if_needed method
- Inject db instances during initialization
- Clean up storage implementation code
2025-02-12 22:25:34 +08:00
yangdx
cf61bed62c
Reorganize env config sections, add data store config to env file.
...
• Add namespace prefix config option
• Make AGE graph name optional
• Update env variable requirements
• Add comments for deprecated options
2025-02-12 21:48:48 +08:00
yangdx
fc0f522ed5
Merge branch 'main' into select-datastore-in-api-server
2025-02-12 09:49:18 +08:00
ArnoChen
9daab4340c
add MongoDocStatusStorage
...
remove unnecessary logging
format
2025-02-12 04:13:48 +08:00
ArnoChen
1af72b4ce9
Merge remote-tracking branch 'origin/main' into graph-viewer-webui
2025-02-11 22:52:01 +08:00
zrguo
a272c7b3f7
Merge pull request #741 from Brenon28/fix-update-doc-status-postgresql
...
fix(postgres): update document status with partial update instead of …
2025-02-11 22:14:52 +08:00
ArnoChen
bd7d4c0b17
Merge branch 'main' into graph-viewer-webui
2025-02-11 17:34:25 +08:00
yangdx
afb5272816
Fix type and class name in doc status storage class assignment
...
• Corrected PGDocStatusStorage class name
• Fixed db assignment to class not instance
• Fixed incorrect Oracle reference
2025-02-11 17:07:53 +08:00