feat: add coding rule search type
This commit is contained in:
parent
c1106b76fe
commit
95bafd942c
1 changed files with 7 additions and 6 deletions
|
|
@ -85,14 +85,15 @@ async def main():
|
|||
)
|
||||
|
||||
# Find the new specific coding rules added to graph through memify (created based on chat conversation between team members)
|
||||
print(
|
||||
await cognee.search(
|
||||
query_text="List me the coding rules",
|
||||
query_type=cognee.SearchType.CODING_RULES,
|
||||
node_name=["coding_agent_rules"],
|
||||
)
|
||||
coding_rules = await cognee.search(
|
||||
query_text="List me the coding rules",
|
||||
query_type=cognee.SearchType.CODING_RULES,
|
||||
node_name=["coding_agent_rules"],
|
||||
)
|
||||
|
||||
for coding_rule in coding_rules:
|
||||
print(coding_rule)
|
||||
|
||||
# Visualize new graph with added memify context
|
||||
file_path = os.path.join(
|
||||
pathlib.Path(__file__).parent, ".artifacts", "graph_visualization_after_memify.html"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue