Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
m97j
/
pls-rag
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
pls-rag
/
api
/
schemas.py
m97j
Initial codes commit
4fdc679
about 1 month ago
raw
Copy download link
history
blame
contribute
delete
Safe
203 Bytes
# rag/api/schemas.py
from
pydantic
import
BaseModel
from
typing
import
List
,
Dict
,
Any
class
SearchRequest
(
BaseModel
):
query:
str
class
SearchResponse
(
BaseModel
):
results:
List
[
Dict
[
str
,
Any
]]