101 Commits

Author SHA1 Message Date
yangdx
10dbbe4ebf Fix linting 2025-05-08 04:29:43 +08:00
yangdx
ae1c9f8d10 Add user_prompt the QueryParam 2025-05-08 03:38:47 +08:00
yangdx
1de74c9228 Fix linting 2025-04-15 12:34:04 +08:00
yangdx
99f24cd51e Make batch methods in BaseGraphStorage optional with default implementations
- Removing the @abstractmethod decorator
- Adding default implementations that call the corresponding non-batch methods
- Preserving full backward compatibility with existing implementations
2025-04-12 22:42:43 +08:00
yangdx
e9b04e5bd2 Merge branch 'graph-storage-batch-query-frederikhendrix' into graph-storage-batch-query 2025-04-12 22:20:41 +08:00
yangdx
c084358dc9 Improved graph storage documentation and methods
- Added detailed docstrings for graph methods
- Added bulk node/edge removal methods
2025-04-11 18:34:03 +08:00
choizhang
a12d60e4ea feat: Add query mode 'bypass' to bypass knowledge retrieval and directly use LLM 2025-04-11 02:57:34 +08:00
frederikhendrix
182aee2e14 get_node added and all to base.py and to neo4j_impl.py file 2025-04-07 19:09:31 +02:00
yangdx
1eb40a69f5 Udpate BFS comments 2025-04-03 16:32:18 +08:00
yangdx
3e3338a144 Fix get_node error for PostgreSQL graph storage 2025-04-03 15:40:31 +08:00
yangdx
82c4baba70 Add is_truncated to graph query for NetworkX graph db 2025-04-02 22:12:20 +08:00
yangdx
d7d04a0d94 Update graph retrival api(abandon pydantic model) 2025-04-02 18:32:03 +08:00
yangdx
95a8ee27ed Fix linting 2025-03-31 23:22:27 +08:00
yangdx
3d4f8f67c9 Add drop_cace_by_modes to all KV storage implementation 2025-03-31 23:10:21 +08:00
yangdx
1772e7a887 Add delete support to all storage implementation 2025-03-31 16:21:20 +08:00
yangdx
81f887ebab feat: Remove immediate persistence in delete operation
- Enhance delete implementation in JsonKVStorage by removing immediate persistence in delete operation
- Update documentation for drop method to clarify persistence behavior
- Add abstract delete method to BaseKVStorage
2025-03-31 14:14:32 +08:00
yangdx
1df4b777d7 Add drop funtions to storage implementations 2025-03-30 15:17:57 +08:00
yangdx
65574459f9 standardize .env loading behavior across modules 2025-03-29 03:48:38 +08:00
omdivyatej
f049f2f5c4 linting errors 2025-03-25 15:20:09 +05:30
omdivyatej
3522da1b21 specify LLM for query 2025-03-23 21:33:49 +05:30
zrguo
bf18a5406e add citation 2025-03-17 23:32:35 +08:00
zrguo
c26cb3a9ea fix merge bugs 2025-03-11 16:05:04 +08:00
Roy
92ae895713 Refactor requirements and code formatting
- Simplified requirements.txt by removing specific version constraints
- Added comment about extra library installation using pipmaster
- Improved code formatting in base.py, operate.py, and postgres_impl.py
- Cleaned up SQL templates and query method signatures with consistent formatting
2025-03-10 15:39:18 +00:00
Roy
04fdc617bb main_merge 2025-03-08 20:34:29 +00:00
Roy
528fb11364 Refactor vector query methods to support optional ID filtering
- Updated BaseVectorStorage query method signature to accept optional IDs
- Modified operate.py to pass query parameter IDs to vector storage queries
- Updated PostgreSQL vector storage SQL templates to filter results by document IDs
- Removed unused parameters and simplified query logic across multiple files
2025-03-08 15:43:17 +00:00
Roy
0ec61d6407 Update project dependencies and example test files
- Updated requirements.txt with latest package versions
- Added support for filtering query results by IDs in base and operate modules
- Modified PostgreSQL vector storage to include document and chunk ID fields
2025-03-07 18:45:28 +00:00
yangdx
5942d148f0 Set default max_depth to 3 for knowledge graph retrieval 2025-03-07 07:34:29 +08:00
Yannick Stephan
678e0f9aea
Revert "Cleanup of code" 2025-02-20 15:09:43 +01:00
Yannick Stephan
439685e69c
Revert "removed get_knowledge_graph" 2025-02-20 14:29:36 +01:00
Yannick Stephan
89c35c82c7 removed get_knowledge_graph 2025-02-19 22:57:46 +01:00
Yannick Stephan
eb3306f34c cleanup 2025-02-19 22:52:49 +01:00
ArnoChen
e194e04226 refactor database connection management and improve storage lifecycle handling
update
2025-02-19 03:49:05 +08:00
Yannick Stephan
fc0cf2934e fixed drop 2025-02-18 10:21:14 +01:00
Yannick Stephan
3b30b7985b fixed str enum 2025-02-17 18:26:07 +01:00
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
Yannick Stephan
87a13fd3ea cleaned code 2025-02-16 16:22:28 +01:00
Yannick Stephan
2bf238396e updated wrong status 2025-02-16 15:52:59 +01:00
yangdx
8f6e9fcf50 Merge branch 'main' into add-env-settings 2025-02-16 22:34:39 +08:00
Yannick Stephan
0c21442ca4 fixed default init 2025-02-16 15:20:46 +01:00
Yannick Stephan
9a5fbaaa5f removed unused methods 2025-02-16 14:50:04 +01:00
Yannick Stephan
3fef8201c6 added final, required methods and cleaned import 2025-02-16 14:38:09 +01:00
ArnoChen
893b645506 unify doc status retrieval with get_docs_by_status 2025-02-16 21:28:58 +08:00
Yannick Stephan
7848a38a45 added all abstractmethod 2025-02-16 14:11:19 +01:00
Yannick Stephan
931c31fa8c cleaned code 2025-02-16 13:55:30 +01:00
Yannick Stephan
882190a515 updated clean of what implemented on DocStatusStorage 2025-02-16 13:53:59 +01:00
Yannick Stephan
71a18d1de9 updated clean of what implemented on BaseKVStorage 2025-02-16 13:31:12 +01:00
yangdx
7f13b779e1 Fix linting 2025-02-16 20:15:14 +08:00
yangdx
4e354451b7 Fix load_dotenv() missing problem for base.py 2025-02-16 20:05:45 +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