No project description provided
Project description
Knowledge Graph RAG
Create a graph of interconnected documents and boost performance on RAG
1. Install Knowledge Graph RAG:
pip install knowledge_graph_rag
2. Create a Document Graph:
documents = ["Cardiovascular disease ...",
"Emerging therapeutic interventions ...",
"The epidemiological burden ...
"Cardiovascular disease also ...",
"Advanced imaging techniques, ...",
"Role of novel biomarkers ..."
]
documents_graph = DocumentsGraph(documents=documents)
documents_graph.plot()
3. Find interconnected documents
documents_containing_connected_terminology = documents_graph.find_connected_documents(vectordb_search_result)
documents_containing_connected_terminology
[{'document': 'emerging therapeutic intervention ...'},
{'document': 'management cardiovascular ...'},
{'document': 'role novel biomarkers ...'}]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file knowledge_graph_rag-0.0.3.tar.gz
.
File metadata
- Download URL: knowledge_graph_rag-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f15a26cf33706ace1744618f1446becf2e692b64f32e774f5e73576a5fe557e |
|
MD5 | 2b135a52a4e579c897940b82efa89382 |
|
BLAKE2b-256 | 161f67e4c6c061ad93f915457e7fd04336b1e8ff212794ab56e2b733fecd3ce6 |
File details
Details for the file knowledge_graph_rag-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: knowledge_graph_rag-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c30973d795ae410ea6605919f39f286e5e3ff87ee79dcaf7317695de7a74e6d2 |
|
MD5 | f768718397431d2be41cce4a32a16738 |
|
BLAKE2b-256 | 2d1d1568ad3a72f2fa9618e2b6155f8cccbb083f0924390e6acba36296ca0038 |