Package dev.gmitch215.bytebox.binding
Interface AiSearch
- All Superinterfaces:
org.teavm.jso.JSObject
public interface AiSearch
extends org.teavm.jso.JSObject
An AI Search binding. Declared with
aiSearch(), named AI_SEARCH by default.
Retrieval over an indexed corpus, optionally with a generated answer over the top.
- Since:
- 1.0.0
-
Method Summary
Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
search
Retrieves matching passages without generating an answer.- Parameters:
query- the query- Returns:
- the matches
-
ask
Retrieves passages and generates an answer from them.- Parameters:
query- the query- Returns:
- the answer and the passages behind it
-
runSearch
-
runAi
-