Empty Index Retriever

Default query for EmptyIndex.

class llama_index.indices.empty.retrievers.EmptyIndexRetriever(index: EmptyIndex, input_prompt: Optional[BasePromptTemplate] = None, callback_manager: Optional[CallbackManager] = None, **kwargs: Any)

EmptyIndex query.

Passes the raw LLM call to the underlying LLM model.

Parameters

input_prompt (Optional[BasePromptTemplate]) – A Simple Input Prompt (see Prompt Templates).

get_prompts() Dict[str, BasePromptTemplate]

Get a prompt.

get_service_context() Optional[ServiceContext]

Attempts to resolve a service context. Short-circuits at self.service_context, self._service_context, or self._index.service_context.

retrieve(str_or_query_bundle: Union[str, QueryBundle]) List[NodeWithScore]

Retrieve nodes given query.

Parameters

str_or_query_bundle (QueryType) – Either a query string or a QueryBundle object.

update_prompts(prompts_dict: Dict[str, BasePromptTemplate]) None

Update prompts.

Other prompts will remain in place.