13 lines
270 B
Markdown
13 lines
270 B
Markdown
|
|
# Sample Python Adapter
|
||
|
|
|
||
|
|
This directory shows the minimal shape expected by the `python` app adapter:
|
||
|
|
|
||
|
|
```python
|
||
|
|
def run(question: str, **kwargs) -> dict:
|
||
|
|
return {
|
||
|
|
"answer": "...",
|
||
|
|
"contexts": ["...", "..."],
|
||
|
|
"raw_response": {...},
|
||
|
|
}
|
||
|
|
```
|