Response Synthesizer
What’s a Response Synthesizer?
Installation
# you can use a Conda environment
pip install --extra-index-url https://oauth2accesstoken:$(gcloud auth print-access-token)@glsdk.gdplabs.id/gen-ai-internal/simple/ "gllm-generation"# you can use a Conda environment
pip install --extra-index-url https://oauth2accesstoken:$(gcloud auth print-access-token)@glsdk.gdplabs.id/gen-ai-internal/simple/ "gllm-generation"# you can use a Conda environment
FOR /F "tokens=*" %T IN ('gcloud auth print-access-token') DO pip install --extra-index-url "https://oauth2accesstoken:%T@glsdk.gdplabs.id/gen-ai-internal/simple/" "gllm-generation"Available Strategies
Strategy
When to Use
Link to Section
Quickstart
Customizing Language Model
Passing Custom LM Request Processor
Using Prompt Variables
Adding History
Adding Extra Contents
Customizing Extractor Function
Other Strategies
1. Static List
When to Use
Example: Using default configuration
Example: Using custom format_response_func
format_response_func2. Map Reduce
When to Use
How It Works
Prompt Template Variables
Example: Using Preset
Example: Custom Configuration
3. Refine
When to Use
How It Works
Prompt Template Variables
Example: Using Preset
Example: Custom Configuration
Last updated
Was this helpful?