|
Download sdks/python/docs/SearchRequest.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/SearchRequest.md
- Command line
-
hf download hf://cryptorugmunch/rugmuncher-backend/sdks/python/docs/SearchRequest.md
-
curl -L -o SearchRequest.md https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/SearchRequest.md
1.12 kB
SearchRequest
RAG search request.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| query | str | ||
| collection | str | [optional] [default to 'scam_intel'] | |
| top_k | int | [optional] [default to 5] | |
| min_similarity | float | [optional] [default to 0.0] | |
| filters | Dict[str, object] | [optional] |
Example
from rugmunch.models.search_request import SearchRequest
# TODO update the JSON string below
json = "{}"
# create an instance of SearchRequest from a JSON string
search_request_instance = SearchRequest.from_json(json)
# print the JSON string representation of the object
print(SearchRequest.to_json())
# convert the object into a dict
search_request_dict = search_request_instance.to_dict()
# create an instance of SearchRequest from a dict
search_request_from_dict = SearchRequest.from_dict(search_request_dict)