langchain/docs
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
..
api_reference Wfh/ref links (#8454) 2023-07-29 08:44:32 -07:00
docs_skeleton Minor formatting and additional figure for summarization use case (#8663) 2023-08-02 21:52:29 -07:00
extras Retriever that can re-phase user inputs (#8026) 2023-08-03 21:23:59 -07:00
snippets Add regex control over separators in character text splitter (#7933) 2023-08-03 20:25:23 -07:00
.local_build.sh Update local script for docs build (#8377) 2023-07-27 13:13:59 -07:00
package-lock.json docs: New experimental UI for Mendable Search (#6558) 2023-07-03 20:52:13 +01:00
vercel_requirements.txt Add api cross ref linking (#8275) 2023-07-26 12:38:58 -07:00