first commit
This commit is contained in:
12
apps/sample_python/README.md
Normal file
12
apps/sample_python/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# 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": {...},
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user