|
Download sdks/python/docs/SearchResponse.md from cryptorugmunch/rugmuncher-backend: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/SearchResponse.md
- Command line
-
hf download hf://cryptorugmunch/rugmuncher-backend/sdks/python/docs/SearchResponse.md
-
curl -L -o SearchResponse.md https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/SearchResponse.md
1.12 kB
SearchResponse
RAG search response.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| query | str | ||
| hits | List[SearchHit] | [optional] | |
| total | int | [optional] [default to 0] | |
| took_ms | int | [optional] [default to 0] | |
| collection | str | [optional] [default to ''] |
Example
from rugmunch.models.search_response import SearchResponse
# TODO update the JSON string below
json = "{}"
# create an instance of SearchResponse from a JSON string
search_response_instance = SearchResponse.from_json(json)
# print the JSON string representation of the object
print(SearchResponse.to_json())
# convert the object into a dict
search_response_dict = search_response_instance.to_dict()
# create an instance of SearchResponse from a dict
search_response_from_dict = SearchResponse.from_dict(search_response_dict)