空索引检索器
Default query for GPTEmptyIndex.
- class llama_index.indices.empty.retrievers.EmptyIndexRetriever(index: GPTEmptyIndex, input_prompt: Optional[Prompt] = None, **kwargs: Any)
GPTEmptyIndex query.
Passes the raw LLM call to the underlying LLM model.
- 参数
input_prompt (Optional[SimpleInputPrompt]) -- A Simple Input Prompt (see Prompt-Templates).
- retrieve(str_or_query_bundle: Union[str, QueryBundle]) List[NodeWithScore]
Retrieve nodes given query.
- 参数
str_or_query_bundle (QueryType) -- Either a query string or a QueryBundle object.