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,13 +85,14 @@ async def main():
) )
# Find the new specific coding rules added to graph through memify (created based on chat conversation between team members) # Find the new specific coding rules added to graph through memify (created based on chat conversation between team members)
print( coding_rules = await cognee.search(
await cognee.search(
query_text="List me the coding rules", query_text="List me the coding rules",
query_type=cognee.SearchType.CODING_RULES, query_type=cognee.SearchType.CODING_RULES,
node_name=["coding_agent_rules"], node_name=["coding_agent_rules"],
) )
)
for coding_rule in coding_rules:
print(coding_rule)
# Visualize new graph with added memify context # Visualize new graph with added memify context
file_path = os.path.join( file_path = os.path.join(