langchain/docs/extras
Lance Martin d1b95db874
Retriever that can re-phase user inputs (#8026)
Simple retriever that applies an LLM between the user input and the
query pass the to retriever.

It can be used to pre-process the user input in any way.

The default prompt:

```
DEFAULT_QUERY_PROMPT = PromptTemplate(
    input_variables=["question"],
    template="""You are an assistant tasked with taking a natural languge query from a user
    and converting it into a query for a vectorstore. In this process, you strip out
    information that is not relevant for the retrieval task. Here is the user query: {question} """
)
```

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-08-03 21:23:59 -07:00
..
_templates Update Integrations links (#8206) 2023-07-24 21:20:32 -07:00
additional_resources Link to use cases from tutorials (#8371) 2023-07-27 11:54:04 -07:00
ecosystem use top nav docs (#8090) 2023-07-21 13:52:03 -07:00
guides updated interface jupyter notebook explanations (#8689) 2023-08-03 11:53:31 -04:00
integrations Retriever that can re-phase user inputs (#8026) 2023-08-03 21:23:59 -07:00
modules updates some spelling mistakes (#8537) 2023-07-31 17:15:29 -07:00
use_cases Minor formatting and additional figure for summarization use case (#8663) 2023-08-02 21:52:29 -07:00