lpelabs / reDocs.ai

Full codebase to developer standard documentation harnessing AI!
MIT License
6 stars 3 forks source link

Feature - Knowledge Graph for Code Retrieval #14

Closed Tharun-bot closed 1 month ago

Tharun-bot commented 2 months ago

Introduced KG which creates a network creates nodes which represents classes, functions or other features of the code. The connecting edges the traits that relates the nodes. According to the query, the LLM traverses across the graph, coming up with answers. But as a drawback, the ETA for retrieval is quite higher. But by introducing GPU powered machines, this can be better. Hallucination can also be a problem when repo files are smaller. As an add on, we can introduce Agents, that can route to KG functionality when the user required more accurate and descriptive answers.

Screenshot from 2024-07-22 10-52-11 ![Uploading S Screenshot from 2024-07-22 10-45-09 creenshot from 2024-0 Screenshot from 2024-07-22 10-46-43 7-22 10-49-26.png…]() Screenshot from 2024-07-22 10-52-50

The testing repo I used -

https://github.com/NousResearch/Hermes-Function-Calling