Search for nodes similar to a query (high-level convenience function)
This combines embedding generation, vector search, and node retrieval into
a single function call. Use this when you need the raw search results with nodes
but don't need formatted context. For LLM-ready context, use getContextForQuery instead.
Parameters
db: Surreal
SurrealDB instance
query: string
Natural language query text (e.g., "authentication functions")
Search for nodes similar to a query (high-level convenience function)
This combines embedding generation, vector search, and node retrieval into a single function call. Use this when you need the raw search results with nodes but don't need formatted context. For LLM-ready context, use getContextForQuery instead.