Skip to content

Commit ee8854d

Browse files
committed
add instructional query to heimdall
1 parent 0cd3e6a commit ee8854d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/heimdall/types.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,16 @@ Modifications (use carefully):
633633
Subqueries:
634634
CALL { MATCH (n) RETURN count(n) as c } RETURN c - Subquery
635635
UNWIND [1,2,3] AS x RETURN x - List expansion
636+
637+
To perform a vector search, you can use the following syntax:
638+
CALL db.index.vector.queryNodes('chunk_embedding_index', 50, 'YOUR QUERY HERE')
639+
YIELD node AS chunk, score
640+
MATCH (file:File)-[:HAS_CHUNK]->(chunk)
641+
RETURN file.path AS file,
642+
max(score) AS bestScore,
643+
count(*) AS matchedChunks
644+
ORDER BY bestScore DESC
645+
LIMIT 10;
636646
`
637647

638648
// EstimatedSystemTokens returns estimated token count for the system prompt.

0 commit comments

Comments
 (0)