|
Download sdks/python/docs/SearchHit.md from cryptorugmunch/rugmuncher-backend: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/SearchHit.md
- Command line
-
hf download hf://cryptorugmunch/rugmuncher-backend/sdks/python/docs/SearchHit.md
-
curl -L -o SearchHit.md https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/SearchHit.md
1.05 kB
SearchHit
A single search result.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| content | str | ||
| score | float | [optional] [default to 0.0] | |
| metadata | Dict[str, object] | [optional] | |
| collection | str | [optional] [default to ''] | |
| doc_id | str | [optional] [default to ''] |
Example
from rugmunch.models.search_hit import SearchHit
# TODO update the JSON string below
json = "{}"
# create an instance of SearchHit from a JSON string
search_hit_instance = SearchHit.from_json(json)
# print the JSON string representation of the object
print(SearchHit.to_json())
# convert the object into a dict
search_hit_dict = search_hit_instance.to_dict()
# create an instance of SearchHit from a dict
search_hit_from_dict = SearchHit.from_dict(search_hit_dict)