feat: add coding rule search type

This commit is contained in:
Igor Ilic 2025-09-04 18:06:02 +02:00
parent c1106b76fe
commit 95bafd942c

View file

@ -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"