LexicalTagBackend๏ƒ

Inherits: SemanticSearchBackend < RefCounted < Object

Semantic search backend backed by the lexical asset tag index.

Description๏ƒ

Delegates search, similarity, rebuild, and stats calls to SemanticAssetIndex. This is the default lightweight backend when embedding providers are not required.

Methods๏ƒ

Array

find_similar(path: String, limit: int = 10) const

Dictionary

get_stats() const

Error

rebuild()

Array

search(query: String, limit: int = 20) const


Method Descriptions๏ƒ

Array find_similar(path: String, limit: int = 10) const ๐Ÿ”—

Returns up to limit assets similar to the indexed asset at path.


Dictionary get_stats() const ๐Ÿ”—

Returns statistics from the underlying SemanticAssetIndex.


Error rebuild() ๐Ÿ”—

Rebuilds the lexical index via SemanticAssetIndex.rebuild_index(). Returns @GlobalScope.OK on success, or an Error if the index is unavailable.


Searches indexed assets for query and returns up to limit matches.