Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build graph from codebase #7

Open
rekino opened this issue Jul 25, 2024 · 2 comments
Open

build graph from codebase #7

rekino opened this issue Jul 25, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@rekino
Copy link
Contributor

rekino commented Jul 25, 2024

a graph of nodes and edges with definition:

Node:

  • function name: str
  • namespace: str
  • definition: str

Edge:

  • line number: int
  • arguments: list[str]
  • returns: list[str]
@amrhssn
Copy link

amrhssn commented Jul 25, 2024

@rekino
I implemented a Python code that implements an example scenario for testing Lattice. You can find it here: https://github.com/soverant/lattice/blob/dev-%238-retrieval-setup-preparation/src/lattice/retrieve/example_scenario_1.py

Based on the definitions above, I manually created the code graph for the example scenario: https://github.com/soverant/lattice/blob/dev-%238-retrieval-setup-preparation/src/lattice/retrieve/example_data_1.py

Note that I haven't used an LLM yet to compute the embeddings for nodes and edges and index the graph. The enrichment of this graph data is something that @mehdibalouchi is going to consider.

@farhoud @mehdibalouchi @rekino Please have look at the scenario and the extracted graph, and let me know what you think 🙏🏻
These implementations are related to this issue #8 that I created.

@rekino
Copy link
Contributor Author

rekino commented Jul 26, 2024

This is a good point to start; we can use it as a case study.

@rekino rekino self-assigned this Jul 26, 2024
@rekino rekino added the feature label Jul 26, 2024
@rekino rekino added this to the Lattice 0.1.0 milestone Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants