hermes-client-python 1.8.22__tar.gz → 1.8.24__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hermes-client-python
3
- Version: 1.8.22
3
+ Version: 1.8.24
4
4
  Summary: Async Python client for Hermes search server
5
5
  Project-URL: Homepage, https://github.com/SpaceFrontiers/hermes
6
6
  Project-URL: Repository, https://github.com/SpaceFrontiers/hermes
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "hermes-client-python"
7
- version = "1.8.22"
7
+ version = "1.8.24"
8
8
  description = "Async Python client for Hermes search server"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -3,6 +3,7 @@
3
3
  from .client import HermesClient
4
4
  from .types import (
5
5
  AllQuery,
6
+ BinaryDenseVectorQuery,
6
7
  BooleanQuery,
7
8
  BoostQuery,
8
9
  Combiner,
@@ -25,6 +26,7 @@ from .types import (
25
26
  __all__ = [
26
27
  "HermesClient",
27
28
  "AllQuery",
29
+ "BinaryDenseVectorQuery",
28
30
  "BooleanQuery",
29
31
  "BoostQuery",
30
32
  "Combiner",
@@ -636,6 +636,8 @@ def _from_field_value(fv: pb.FieldValue) -> Any:
636
636
  }
637
637
  elif which == "dense_vector":
638
638
  return list(fv.dense_vector.values)
639
+ elif which == "binary_dense_vector":
640
+ return bytes(fv.binary_dense_vector)
639
641
  return None
640
642
 
641
643
 
@@ -725,6 +727,19 @@ def _build_query(q: dict[str, Any]) -> pb.Query:
725
727
  )
726
728
  )
727
729
 
730
+ if "binary_dense_vector" in q:
731
+ bv = q["binary_dense_vector"]
732
+ return pb.Query(
733
+ binary_dense_vector=pb.BinaryDenseVectorQuery(
734
+ field=bv["field"],
735
+ vector=bv["vector"],
736
+ combiner=_combiner_to_proto(bv.get("combiner")),
737
+ combiner_temperature=bv.get("combiner_temperature", 0),
738
+ combiner_top_k=bv.get("combiner_top_k", 0),
739
+ combiner_decay=bv.get("combiner_decay", 0),
740
+ )
741
+ )
742
+
728
743
  if "boost" in q:
729
744
  bq = q["boost"]
730
745
  return pb.Query(
@@ -765,6 +780,7 @@ def _build_query(q: dict[str, Any]) -> pb.Query:
765
780
  "boolean",
766
781
  "sparse_vector",
767
782
  "dense_vector",
783
+ "binary_dense_vector",
768
784
  "boost",
769
785
  "range",
770
786
  "prefix",
@@ -780,11 +796,12 @@ def _build_reranker(r: dict[str, Any]) -> pb.Reranker:
780
796
  """Convert a Reranker dict to protobuf Reranker."""
781
797
  return pb.Reranker(
782
798
  field=r["field"],
783
- vector=r["vector"],
799
+ vector=r.get("vector", []),
784
800
  limit=r.get("limit", 0),
785
801
  combiner=_combiner_to_proto(r.get("combiner")),
786
802
  combiner_temperature=r.get("combiner_temperature", 0),
787
803
  combiner_top_k=r.get("combiner_top_k", 0),
788
804
  combiner_decay=r.get("combiner_decay", 0),
789
805
  matryoshka_dims=r.get("matryoshka_dims", 0),
806
+ binary_vector=r.get("binary_vector", b""),
790
807
  )
@@ -0,0 +1,150 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: hermes.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'hermes.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0chermes.proto\x12\x06hermes\"\xb8\x03\n\x05Query\x12!\n\x04term\x18\x01 \x01(\x0b\x32\x11.hermes.TermQueryH\x00\x12\'\n\x07\x62oolean\x18\x02 \x01(\x0b\x32\x14.hermes.BooleanQueryH\x00\x12#\n\x05\x62oost\x18\x03 \x01(\x0b\x32\x12.hermes.BoostQueryH\x00\x12\x1f\n\x03\x61ll\x18\x04 \x01(\x0b\x32\x10.hermes.AllQueryH\x00\x12\x32\n\rsparse_vector\x18\x05 \x01(\x0b\x32\x19.hermes.SparseVectorQueryH\x00\x12\x30\n\x0c\x64\x65nse_vector\x18\x06 \x01(\x0b\x32\x18.hermes.DenseVectorQueryH\x00\x12#\n\x05match\x18\x07 \x01(\x0b\x32\x12.hermes.MatchQueryH\x00\x12#\n\x05range\x18\x08 \x01(\x0b\x32\x12.hermes.RangeQueryH\x00\x12%\n\x06prefix\x18\t \x01(\x0b\x32\x13.hermes.PrefixQueryH\x00\x12=\n\x13\x62inary_dense_vector\x18\n \x01(\x0b\x32\x1e.hermes.BinaryDenseVectorQueryH\x00\x42\x07\n\x05query\"\xa5\x02\n\x11SparseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0f\n\x07indices\x18\x02 \x03(\r\x12\x0e\n\x06values\x18\x03 \x03(\x02\x12\x0c\n\x04text\x18\x04 \x01(\t\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x13\n\x0bheap_factor\x18\x06 \x01(\x02\x12\x1c\n\x14\x63ombiner_temperature\x18\x07 \x01(\x02\x12\x16\n\x0e\x63ombiner_top_k\x18\x08 \x01(\r\x12\x16\n\x0e\x63ombiner_decay\x18\t \x01(\x02\x12\x18\n\x10weight_threshold\x18\n \x01(\x02\x12\x16\n\x0emax_query_dims\x18\x0b \x01(\r\x12\x0f\n\x07pruning\x18\x0c \x01(\x02\"\xd4\x01\n\x10\x44\x65nseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\x0e\n\x06nprobe\x18\x03 \x01(\r\x12\x15\n\rrerank_factor\x18\x04 \x01(\x02\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x1c\n\x14\x63ombiner_temperature\x18\x06 \x01(\x02\x12\x16\n\x0e\x63ombiner_top_k\x18\x07 \x01(\r\x12\x16\n\x0e\x63ombiner_decay\x18\x08 \x01(\x02\"\xb3\x01\n\x16\x42inaryDenseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x01(\x0c\x12,\n\x08\x63ombiner\x18\x03 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x1c\n\x14\x63ombiner_temperature\x18\x04 \x01(\x02\x12\x16\n\x0e\x63ombiner_top_k\x18\x05 \x01(\r\x12\x16\n\x0e\x63ombiner_decay\x18\x06 \x01(\x02\"(\n\tTermQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04term\x18\x02 \x01(\t\"k\n\x0c\x42ooleanQuery\x12\x1b\n\x04must\x18\x01 \x03(\x0b\x32\r.hermes.Query\x12\x1d\n\x06should\x18\x02 \x03(\x0b\x32\r.hermes.Query\x12\x1f\n\x08must_not\x18\x03 \x03(\x0b\x32\r.hermes.Query\"9\n\nBoostQuery\x12\x1c\n\x05query\x18\x01 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\"\n\n\x08\x41llQuery\"\xe7\x01\n\nRangeQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x14\n\x07min_u64\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07max_u64\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07min_i64\x18\x04 \x01(\x03H\x02\x88\x01\x01\x12\x14\n\x07max_i64\x18\x05 \x01(\x03H\x03\x88\x01\x01\x12\x14\n\x07min_f64\x18\x06 \x01(\x01H\x04\x88\x01\x01\x12\x14\n\x07max_f64\x18\x07 \x01(\x01H\x05\x88\x01\x01\x42\n\n\x08_min_u64B\n\n\x08_max_u64B\n\n\x08_min_i64B\n\n\x08_max_i64B\n\n\x08_min_f64B\n\n\x08_max_f64\")\n\nMatchQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\",\n\x0bPrefixQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06prefix\x18\x02 \x01(\t\"\xe4\x01\n\x08Reranker\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\r\n\x05limit\x18\x03 \x01(\r\x12,\n\x08\x63ombiner\x18\x04 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x1c\n\x14\x63ombiner_temperature\x18\x05 \x01(\x02\x12\x16\n\x0e\x63ombiner_top_k\x18\x06 \x01(\r\x12\x16\n\x0e\x63ombiner_decay\x18\x07 \x01(\x02\x12\x17\n\x0fmatryoshka_dims\x18\x08 \x01(\r\x12\x15\n\rbinary_vector\x18\t \x01(\x0c\"\x9c\x01\n\rSearchRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x1c\n\x05query\x18\x02 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05limit\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\r\x12\x16\n\x0e\x66ields_to_load\x18\x05 \x03(\t\x12\"\n\x08reranker\x18\x06 \x01(\x0b\x32\x10.hermes.Reranker\"0\n\nDocAddress\x12\x12\n\nsegment_id\x18\x01 \x01(\t\x12\x0e\n\x06\x64oc_id\x18\x02 \x01(\r\"\xe3\x01\n\tSearchHit\x12#\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\x12.hermes.DocAddress\x12\r\n\x05score\x18\x02 \x01(\x02\x12-\n\x06\x66ields\x18\x03 \x03(\x0b\x32\x1d.hermes.SearchHit.FieldsEntry\x12,\n\x0eordinal_scores\x18\x04 \x03(\x0b\x32\x14.hermes.OrdinalScore\x1a\x45\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.hermes.FieldValueList:\x02\x38\x01\"4\n\x0e\x46ieldValueList\x12\"\n\x06values\x18\x01 \x03(\x0b\x32\x12.hermes.FieldValue\".\n\x0cOrdinalScore\x12\x0f\n\x07ordinal\x18\x01 \x01(\r\x12\r\n\x05score\x18\x02 \x01(\x02\"\xfa\x01\n\nFieldValue\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\r\n\x03u64\x18\x02 \x01(\x04H\x00\x12\r\n\x03i64\x18\x03 \x01(\x03H\x00\x12\r\n\x03\x66\x36\x34\x18\x04 \x01(\x01H\x00\x12\x15\n\x0b\x62ytes_value\x18\x05 \x01(\x0cH\x00\x12-\n\rsparse_vector\x18\x06 \x01(\x0b\x32\x14.hermes.SparseVectorH\x00\x12+\n\x0c\x64\x65nse_vector\x18\x07 \x01(\x0b\x32\x13.hermes.DenseVectorH\x00\x12\x14\n\njson_value\x18\x08 \x01(\tH\x00\x12\x1d\n\x13\x62inary_dense_vector\x18\t \x01(\x0cH\x00\x42\x07\n\x05value\"/\n\x0cSparseVector\x12\x0f\n\x07indices\x18\x01 \x03(\r\x12\x0e\n\x06values\x18\x02 \x03(\x02\"\x1d\n\x0b\x44\x65nseVector\x12\x0e\n\x06values\x18\x01 \x03(\x02\"~\n\x0eSearchResponse\x12\x1f\n\x04hits\x18\x01 \x03(\x0b\x32\x11.hermes.SearchHit\x12\x12\n\ntotal_hits\x18\x02 \x01(\x04\x12\x0f\n\x07took_ms\x18\x03 \x01(\x04\x12&\n\x07timings\x18\x04 \x01(\x0b\x32\x15.hermes.SearchTimings\"X\n\rSearchTimings\x12\x11\n\tsearch_us\x18\x01 \x01(\x04\x12\x11\n\trerank_us\x18\x02 \x01(\x04\x12\x0f\n\x07load_us\x18\x03 \x01(\x04\x12\x10\n\x08total_us\x18\x04 \x01(\x04\"M\n\x12GetDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12#\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x12.hermes.DocAddress\"\x95\x01\n\x13GetDocumentResponse\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\'.hermes.GetDocumentResponse.FieldsEntry\x1a\x45\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.hermes.FieldValueList:\x02\x38\x01\")\n\x13GetIndexInfoRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"\xbd\x01\n\x14GetIndexInfoResponse\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x10\n\x08num_docs\x18\x02 \x01(\r\x12\x14\n\x0cnum_segments\x18\x03 \x01(\r\x12\x0e\n\x06schema\x18\x04 \x01(\t\x12)\n\x0cmemory_stats\x18\x05 \x01(\x0b\x32\x13.hermes.MemoryStats\x12.\n\x0cvector_stats\x18\x06 \x03(\x0b\x32\x18.hermes.VectorFieldStats\"e\n\x10VectorFieldStats\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12\x13\n\x0bvector_type\x18\x02 \x01(\t\x12\x15\n\rtotal_vectors\x18\x03 \x01(\x04\x12\x11\n\tdimension\x18\x04 \x01(\r\"\x8c\x01\n\x0bMemoryStats\x12\x13\n\x0btotal_bytes\x18\x01 \x01(\x04\x12\x34\n\x0findexing_buffer\x18\x02 \x01(\x0b\x32\x1b.hermes.IndexingBufferStats\x12\x32\n\x0esegment_reader\x18\x03 \x01(\x0b\x32\x1a.hermes.SegmentReaderStats\"\xdf\x01\n\x13IndexingBufferStats\x12\x13\n\x0btotal_bytes\x18\x01 \x01(\x04\x12\x16\n\x0epostings_bytes\x18\x02 \x01(\x04\x12\x1c\n\x14sparse_vectors_bytes\x18\x03 \x01(\x04\x12\x1b\n\x13\x64\x65nse_vectors_bytes\x18\x04 \x01(\x04\x12\x16\n\x0einterner_bytes\x18\x05 \x01(\x04\x12\x1c\n\x14position_index_bytes\x18\x06 \x01(\x04\x12\x14\n\x0cpending_docs\x18\x07 \x01(\r\x12\x14\n\x0cunique_terms\x18\x08 \x01(\r\"\xb7\x01\n\x12SegmentReaderStats\x12\x13\n\x0btotal_bytes\x18\x01 \x01(\x04\x12\x1d\n\x15term_dict_cache_bytes\x18\x02 \x01(\x04\x12\x19\n\x11store_cache_bytes\x18\x03 \x01(\x04\x12\x1a\n\x12sparse_index_bytes\x18\x04 \x01(\x04\x12\x19\n\x11\x64\x65nse_index_bytes\x18\x05 \x01(\x04\x12\x1b\n\x13num_segments_loaded\x18\x06 \x01(\r\"8\n\x12\x43reateIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\"&\n\x13\x43reateIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"=\n\nFieldEntry\x12\x0c\n\x04name\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue\"3\n\rNamedDocument\x12\"\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x12.hermes.FieldEntry\"Z\n\x1a\x42\x61tchIndexDocumentsRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12(\n\tdocuments\x18\x02 \x03(\x0b\x32\x15.hermes.NamedDocument\"p\n\x1b\x42\x61tchIndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\x12\x13\n\x0b\x65rror_count\x18\x02 \x01(\r\x12%\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x15.hermes.DocumentError\"-\n\rDocumentError\x12\r\n\x05index\x18\x01 \x01(\r\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"N\n\x14IndexDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\"\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x12.hermes.FieldEntry\"V\n\x16IndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\x12%\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x15.hermes.DocumentError\"#\n\rCommitRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"3\n\x0e\x43ommitResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x10\n\x08num_docs\x18\x02 \x01(\r\"\'\n\x11\x46orceMergeRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\";\n\x12\x46orceMergeResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0cnum_segments\x18\x02 \x01(\r\"(\n\x12\x44\x65leteIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"&\n\x13\x44\x65leteIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"\x14\n\x12ListIndexesRequest\"*\n\x13ListIndexesResponse\x12\x13\n\x0bindex_names\x18\x01 \x03(\t\"/\n\x19RetrainVectorIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"-\n\x1aRetrainVectorIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"$\n\x0eReorderRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"8\n\x0fReorderResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0cnum_segments\x18\x02 \x01(\r*\x81\x01\n\x12MultiValueCombiner\x12\x18\n\x14\x43OMBINER_LOG_SUM_EXP\x10\x00\x12\x10\n\x0c\x43OMBINER_MAX\x10\x01\x12\x10\n\x0c\x43OMBINER_AVG\x10\x02\x12\x10\n\x0c\x43OMBINER_SUM\x10\x03\x12\x1b\n\x17\x43OMBINER_WEIGHTED_TOP_K\x10\x04\x32\xdb\x01\n\rSearchService\x12\x37\n\x06Search\x12\x15.hermes.SearchRequest\x1a\x16.hermes.SearchResponse\x12\x46\n\x0bGetDocument\x12\x1a.hermes.GetDocumentRequest\x1a\x1b.hermes.GetDocumentResponse\x12I\n\x0cGetIndexInfo\x12\x1b.hermes.GetIndexInfoRequest\x1a\x1c.hermes.GetIndexInfoResponse2\xaf\x05\n\x0cIndexService\x12\x46\n\x0b\x43reateIndex\x12\x1a.hermes.CreateIndexRequest\x1a\x1b.hermes.CreateIndexResponse\x12P\n\x0eIndexDocuments\x12\x1c.hermes.IndexDocumentRequest\x1a\x1e.hermes.IndexDocumentsResponse(\x01\x12^\n\x13\x42\x61tchIndexDocuments\x12\".hermes.BatchIndexDocumentsRequest\x1a#.hermes.BatchIndexDocumentsResponse\x12\x37\n\x06\x43ommit\x12\x15.hermes.CommitRequest\x1a\x16.hermes.CommitResponse\x12\x43\n\nForceMerge\x12\x19.hermes.ForceMergeRequest\x1a\x1a.hermes.ForceMergeResponse\x12:\n\x07Reorder\x12\x16.hermes.ReorderRequest\x1a\x17.hermes.ReorderResponse\x12\x46\n\x0b\x44\x65leteIndex\x12\x1a.hermes.DeleteIndexRequest\x1a\x1b.hermes.DeleteIndexResponse\x12\x46\n\x0bListIndexes\x12\x1a.hermes.ListIndexesRequest\x1a\x1b.hermes.ListIndexesResponse\x12[\n\x12RetrainVectorIndex\x12!.hermes.RetrainVectorIndexRequest\x1a\".hermes.RetrainVectorIndexResponseb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hermes_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ DESCRIPTOR._loaded_options = None
34
+ _globals['_SEARCHHIT_FIELDSENTRY']._loaded_options = None
35
+ _globals['_SEARCHHIT_FIELDSENTRY']._serialized_options = b'8\001'
36
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._loaded_options = None
37
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_options = b'8\001'
38
+ _globals['_MULTIVALUECOMBINER']._serialized_start=5320
39
+ _globals['_MULTIVALUECOMBINER']._serialized_end=5449
40
+ _globals['_QUERY']._serialized_start=25
41
+ _globals['_QUERY']._serialized_end=465
42
+ _globals['_SPARSEVECTORQUERY']._serialized_start=468
43
+ _globals['_SPARSEVECTORQUERY']._serialized_end=761
44
+ _globals['_DENSEVECTORQUERY']._serialized_start=764
45
+ _globals['_DENSEVECTORQUERY']._serialized_end=976
46
+ _globals['_BINARYDENSEVECTORQUERY']._serialized_start=979
47
+ _globals['_BINARYDENSEVECTORQUERY']._serialized_end=1158
48
+ _globals['_TERMQUERY']._serialized_start=1160
49
+ _globals['_TERMQUERY']._serialized_end=1200
50
+ _globals['_BOOLEANQUERY']._serialized_start=1202
51
+ _globals['_BOOLEANQUERY']._serialized_end=1309
52
+ _globals['_BOOSTQUERY']._serialized_start=1311
53
+ _globals['_BOOSTQUERY']._serialized_end=1368
54
+ _globals['_ALLQUERY']._serialized_start=1370
55
+ _globals['_ALLQUERY']._serialized_end=1380
56
+ _globals['_RANGEQUERY']._serialized_start=1383
57
+ _globals['_RANGEQUERY']._serialized_end=1614
58
+ _globals['_MATCHQUERY']._serialized_start=1616
59
+ _globals['_MATCHQUERY']._serialized_end=1657
60
+ _globals['_PREFIXQUERY']._serialized_start=1659
61
+ _globals['_PREFIXQUERY']._serialized_end=1703
62
+ _globals['_RERANKER']._serialized_start=1706
63
+ _globals['_RERANKER']._serialized_end=1934
64
+ _globals['_SEARCHREQUEST']._serialized_start=1937
65
+ _globals['_SEARCHREQUEST']._serialized_end=2093
66
+ _globals['_DOCADDRESS']._serialized_start=2095
67
+ _globals['_DOCADDRESS']._serialized_end=2143
68
+ _globals['_SEARCHHIT']._serialized_start=2146
69
+ _globals['_SEARCHHIT']._serialized_end=2373
70
+ _globals['_SEARCHHIT_FIELDSENTRY']._serialized_start=2304
71
+ _globals['_SEARCHHIT_FIELDSENTRY']._serialized_end=2373
72
+ _globals['_FIELDVALUELIST']._serialized_start=2375
73
+ _globals['_FIELDVALUELIST']._serialized_end=2427
74
+ _globals['_ORDINALSCORE']._serialized_start=2429
75
+ _globals['_ORDINALSCORE']._serialized_end=2475
76
+ _globals['_FIELDVALUE']._serialized_start=2478
77
+ _globals['_FIELDVALUE']._serialized_end=2728
78
+ _globals['_SPARSEVECTOR']._serialized_start=2730
79
+ _globals['_SPARSEVECTOR']._serialized_end=2777
80
+ _globals['_DENSEVECTOR']._serialized_start=2779
81
+ _globals['_DENSEVECTOR']._serialized_end=2808
82
+ _globals['_SEARCHRESPONSE']._serialized_start=2810
83
+ _globals['_SEARCHRESPONSE']._serialized_end=2936
84
+ _globals['_SEARCHTIMINGS']._serialized_start=2938
85
+ _globals['_SEARCHTIMINGS']._serialized_end=3026
86
+ _globals['_GETDOCUMENTREQUEST']._serialized_start=3028
87
+ _globals['_GETDOCUMENTREQUEST']._serialized_end=3105
88
+ _globals['_GETDOCUMENTRESPONSE']._serialized_start=3108
89
+ _globals['_GETDOCUMENTRESPONSE']._serialized_end=3257
90
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_start=2304
91
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_end=2373
92
+ _globals['_GETINDEXINFOREQUEST']._serialized_start=3259
93
+ _globals['_GETINDEXINFOREQUEST']._serialized_end=3300
94
+ _globals['_GETINDEXINFORESPONSE']._serialized_start=3303
95
+ _globals['_GETINDEXINFORESPONSE']._serialized_end=3492
96
+ _globals['_VECTORFIELDSTATS']._serialized_start=3494
97
+ _globals['_VECTORFIELDSTATS']._serialized_end=3595
98
+ _globals['_MEMORYSTATS']._serialized_start=3598
99
+ _globals['_MEMORYSTATS']._serialized_end=3738
100
+ _globals['_INDEXINGBUFFERSTATS']._serialized_start=3741
101
+ _globals['_INDEXINGBUFFERSTATS']._serialized_end=3964
102
+ _globals['_SEGMENTREADERSTATS']._serialized_start=3967
103
+ _globals['_SEGMENTREADERSTATS']._serialized_end=4150
104
+ _globals['_CREATEINDEXREQUEST']._serialized_start=4152
105
+ _globals['_CREATEINDEXREQUEST']._serialized_end=4208
106
+ _globals['_CREATEINDEXRESPONSE']._serialized_start=4210
107
+ _globals['_CREATEINDEXRESPONSE']._serialized_end=4248
108
+ _globals['_FIELDENTRY']._serialized_start=4250
109
+ _globals['_FIELDENTRY']._serialized_end=4311
110
+ _globals['_NAMEDDOCUMENT']._serialized_start=4313
111
+ _globals['_NAMEDDOCUMENT']._serialized_end=4364
112
+ _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_start=4366
113
+ _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_end=4456
114
+ _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_start=4458
115
+ _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_end=4570
116
+ _globals['_DOCUMENTERROR']._serialized_start=4572
117
+ _globals['_DOCUMENTERROR']._serialized_end=4617
118
+ _globals['_INDEXDOCUMENTREQUEST']._serialized_start=4619
119
+ _globals['_INDEXDOCUMENTREQUEST']._serialized_end=4697
120
+ _globals['_INDEXDOCUMENTSRESPONSE']._serialized_start=4699
121
+ _globals['_INDEXDOCUMENTSRESPONSE']._serialized_end=4785
122
+ _globals['_COMMITREQUEST']._serialized_start=4787
123
+ _globals['_COMMITREQUEST']._serialized_end=4822
124
+ _globals['_COMMITRESPONSE']._serialized_start=4824
125
+ _globals['_COMMITRESPONSE']._serialized_end=4875
126
+ _globals['_FORCEMERGEREQUEST']._serialized_start=4877
127
+ _globals['_FORCEMERGEREQUEST']._serialized_end=4916
128
+ _globals['_FORCEMERGERESPONSE']._serialized_start=4918
129
+ _globals['_FORCEMERGERESPONSE']._serialized_end=4977
130
+ _globals['_DELETEINDEXREQUEST']._serialized_start=4979
131
+ _globals['_DELETEINDEXREQUEST']._serialized_end=5019
132
+ _globals['_DELETEINDEXRESPONSE']._serialized_start=5021
133
+ _globals['_DELETEINDEXRESPONSE']._serialized_end=5059
134
+ _globals['_LISTINDEXESREQUEST']._serialized_start=5061
135
+ _globals['_LISTINDEXESREQUEST']._serialized_end=5081
136
+ _globals['_LISTINDEXESRESPONSE']._serialized_start=5083
137
+ _globals['_LISTINDEXESRESPONSE']._serialized_end=5125
138
+ _globals['_RETRAINVECTORINDEXREQUEST']._serialized_start=5127
139
+ _globals['_RETRAINVECTORINDEXREQUEST']._serialized_end=5174
140
+ _globals['_RETRAINVECTORINDEXRESPONSE']._serialized_start=5176
141
+ _globals['_RETRAINVECTORINDEXRESPONSE']._serialized_end=5221
142
+ _globals['_REORDERREQUEST']._serialized_start=5223
143
+ _globals['_REORDERREQUEST']._serialized_end=5259
144
+ _globals['_REORDERRESPONSE']._serialized_start=5261
145
+ _globals['_REORDERRESPONSE']._serialized_end=5317
146
+ _globals['_SEARCHSERVICE']._serialized_start=5452
147
+ _globals['_SEARCHSERVICE']._serialized_end=5671
148
+ _globals['_INDEXSERVICE']._serialized_start=5674
149
+ _globals['_INDEXSERVICE']._serialized_end=6361
150
+ # @@protoc_insertion_point(module_scope)
@@ -69,6 +69,15 @@ class DenseVectorQuery(TypedDict, total=False):
69
69
  combiner_decay: float
70
70
 
71
71
 
72
+ class BinaryDenseVectorQuery(TypedDict, total=False):
73
+ field: str # required but total=False for optional fields
74
+ vector: bytes # packed-bit query vector (ceil(dim/8) bytes)
75
+ combiner: Combiner
76
+ combiner_temperature: float
77
+ combiner_top_k: int
78
+ combiner_decay: float
79
+
80
+
72
81
  class RangeQuery(TypedDict, total=False):
73
82
  field: str # required but total=False for optional fields
74
83
  min_u64: int
@@ -80,7 +89,7 @@ class RangeQuery(TypedDict, total=False):
80
89
 
81
90
 
82
91
  # Query is a dict with exactly one key: "term", "match", "boolean",
83
- # "sparse_vector", "dense_vector", "boost", "range", or "all".
92
+ # "sparse_vector", "dense_vector", "binary_dense_vector", "boost", "range", or "all".
84
93
  Query = dict[str, Any]
85
94
 
86
95
  # =============================================================================
@@ -97,6 +106,7 @@ class Reranker(TypedDict, total=False):
97
106
  combiner_top_k: int
98
107
  combiner_decay: float
99
108
  matryoshka_dims: int
109
+ binary_vector: bytes # packed-bit query vector (for binary dense fields)
100
110
 
101
111
 
102
112
  # =============================================================================
@@ -1,148 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: hermes.proto
5
- # Protobuf Python Version: 6.31.1
6
- """Generated protocol buffer code."""
7
- from google.protobuf import descriptor as _descriptor
8
- from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
- from google.protobuf import symbol_database as _symbol_database
11
- from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 31,
16
- 1,
17
- '',
18
- 'hermes.proto'
19
- )
20
- # @@protoc_insertion_point(imports)
21
-
22
- _sym_db = _symbol_database.Default()
23
-
24
-
25
-
26
-
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0chermes.proto\x12\x06hermes\"\xf9\x02\n\x05Query\x12!\n\x04term\x18\x01 \x01(\x0b\x32\x11.hermes.TermQueryH\x00\x12\'\n\x07\x62oolean\x18\x02 \x01(\x0b\x32\x14.hermes.BooleanQueryH\x00\x12#\n\x05\x62oost\x18\x03 \x01(\x0b\x32\x12.hermes.BoostQueryH\x00\x12\x1f\n\x03\x61ll\x18\x04 \x01(\x0b\x32\x10.hermes.AllQueryH\x00\x12\x32\n\rsparse_vector\x18\x05 \x01(\x0b\x32\x19.hermes.SparseVectorQueryH\x00\x12\x30\n\x0c\x64\x65nse_vector\x18\x06 \x01(\x0b\x32\x18.hermes.DenseVectorQueryH\x00\x12#\n\x05match\x18\x07 \x01(\x0b\x32\x12.hermes.MatchQueryH\x00\x12#\n\x05range\x18\x08 \x01(\x0b\x32\x12.hermes.RangeQueryH\x00\x12%\n\x06prefix\x18\t \x01(\x0b\x32\x13.hermes.PrefixQueryH\x00\x42\x07\n\x05query\"\xa5\x02\n\x11SparseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0f\n\x07indices\x18\x02 \x03(\r\x12\x0e\n\x06values\x18\x03 \x03(\x02\x12\x0c\n\x04text\x18\x04 \x01(\t\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x13\n\x0bheap_factor\x18\x06 \x01(\x02\x12\x1c\n\x14\x63ombiner_temperature\x18\x07 \x01(\x02\x12\x16\n\x0e\x63ombiner_top_k\x18\x08 \x01(\r\x12\x16\n\x0e\x63ombiner_decay\x18\t \x01(\x02\x12\x18\n\x10weight_threshold\x18\n \x01(\x02\x12\x16\n\x0emax_query_dims\x18\x0b \x01(\r\x12\x0f\n\x07pruning\x18\x0c \x01(\x02\"\xd4\x01\n\x10\x44\x65nseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\x0e\n\x06nprobe\x18\x03 \x01(\r\x12\x15\n\rrerank_factor\x18\x04 \x01(\x02\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x1c\n\x14\x63ombiner_temperature\x18\x06 \x01(\x02\x12\x16\n\x0e\x63ombiner_top_k\x18\x07 \x01(\r\x12\x16\n\x0e\x63ombiner_decay\x18\x08 \x01(\x02\"(\n\tTermQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04term\x18\x02 \x01(\t\"k\n\x0c\x42ooleanQuery\x12\x1b\n\x04must\x18\x01 \x03(\x0b\x32\r.hermes.Query\x12\x1d\n\x06should\x18\x02 \x03(\x0b\x32\r.hermes.Query\x12\x1f\n\x08must_not\x18\x03 \x03(\x0b\x32\r.hermes.Query\"9\n\nBoostQuery\x12\x1c\n\x05query\x18\x01 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\"\n\n\x08\x41llQuery\"\xe7\x01\n\nRangeQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x14\n\x07min_u64\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x14\n\x07max_u64\x18\x03 \x01(\x04H\x01\x88\x01\x01\x12\x14\n\x07min_i64\x18\x04 \x01(\x03H\x02\x88\x01\x01\x12\x14\n\x07max_i64\x18\x05 \x01(\x03H\x03\x88\x01\x01\x12\x14\n\x07min_f64\x18\x06 \x01(\x01H\x04\x88\x01\x01\x12\x14\n\x07max_f64\x18\x07 \x01(\x01H\x05\x88\x01\x01\x42\n\n\x08_min_u64B\n\n\x08_max_u64B\n\n\x08_min_i64B\n\n\x08_max_i64B\n\n\x08_min_f64B\n\n\x08_max_f64\")\n\nMatchQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\",\n\x0bPrefixQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06prefix\x18\x02 \x01(\t\"\xcd\x01\n\x08Reranker\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\r\n\x05limit\x18\x03 \x01(\r\x12,\n\x08\x63ombiner\x18\x04 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x1c\n\x14\x63ombiner_temperature\x18\x05 \x01(\x02\x12\x16\n\x0e\x63ombiner_top_k\x18\x06 \x01(\r\x12\x16\n\x0e\x63ombiner_decay\x18\x07 \x01(\x02\x12\x17\n\x0fmatryoshka_dims\x18\x08 \x01(\r\"\x9c\x01\n\rSearchRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x1c\n\x05query\x18\x02 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05limit\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\r\x12\x16\n\x0e\x66ields_to_load\x18\x05 \x03(\t\x12\"\n\x08reranker\x18\x06 \x01(\x0b\x32\x10.hermes.Reranker\"0\n\nDocAddress\x12\x12\n\nsegment_id\x18\x01 \x01(\t\x12\x0e\n\x06\x64oc_id\x18\x02 \x01(\r\"\xe3\x01\n\tSearchHit\x12#\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\x12.hermes.DocAddress\x12\r\n\x05score\x18\x02 \x01(\x02\x12-\n\x06\x66ields\x18\x03 \x03(\x0b\x32\x1d.hermes.SearchHit.FieldsEntry\x12,\n\x0eordinal_scores\x18\x04 \x03(\x0b\x32\x14.hermes.OrdinalScore\x1a\x45\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.hermes.FieldValueList:\x02\x38\x01\"4\n\x0e\x46ieldValueList\x12\"\n\x06values\x18\x01 \x03(\x0b\x32\x12.hermes.FieldValue\".\n\x0cOrdinalScore\x12\x0f\n\x07ordinal\x18\x01 \x01(\r\x12\r\n\x05score\x18\x02 \x01(\x02\"\xdb\x01\n\nFieldValue\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\r\n\x03u64\x18\x02 \x01(\x04H\x00\x12\r\n\x03i64\x18\x03 \x01(\x03H\x00\x12\r\n\x03\x66\x36\x34\x18\x04 \x01(\x01H\x00\x12\x15\n\x0b\x62ytes_value\x18\x05 \x01(\x0cH\x00\x12-\n\rsparse_vector\x18\x06 \x01(\x0b\x32\x14.hermes.SparseVectorH\x00\x12+\n\x0c\x64\x65nse_vector\x18\x07 \x01(\x0b\x32\x13.hermes.DenseVectorH\x00\x12\x14\n\njson_value\x18\x08 \x01(\tH\x00\x42\x07\n\x05value\"/\n\x0cSparseVector\x12\x0f\n\x07indices\x18\x01 \x03(\r\x12\x0e\n\x06values\x18\x02 \x03(\x02\"\x1d\n\x0b\x44\x65nseVector\x12\x0e\n\x06values\x18\x01 \x03(\x02\"~\n\x0eSearchResponse\x12\x1f\n\x04hits\x18\x01 \x03(\x0b\x32\x11.hermes.SearchHit\x12\x12\n\ntotal_hits\x18\x02 \x01(\x04\x12\x0f\n\x07took_ms\x18\x03 \x01(\x04\x12&\n\x07timings\x18\x04 \x01(\x0b\x32\x15.hermes.SearchTimings\"X\n\rSearchTimings\x12\x11\n\tsearch_us\x18\x01 \x01(\x04\x12\x11\n\trerank_us\x18\x02 \x01(\x04\x12\x0f\n\x07load_us\x18\x03 \x01(\x04\x12\x10\n\x08total_us\x18\x04 \x01(\x04\"M\n\x12GetDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12#\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x12.hermes.DocAddress\"\x95\x01\n\x13GetDocumentResponse\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\'.hermes.GetDocumentResponse.FieldsEntry\x1a\x45\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.hermes.FieldValueList:\x02\x38\x01\")\n\x13GetIndexInfoRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"\xbd\x01\n\x14GetIndexInfoResponse\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x10\n\x08num_docs\x18\x02 \x01(\r\x12\x14\n\x0cnum_segments\x18\x03 \x01(\r\x12\x0e\n\x06schema\x18\x04 \x01(\t\x12)\n\x0cmemory_stats\x18\x05 \x01(\x0b\x32\x13.hermes.MemoryStats\x12.\n\x0cvector_stats\x18\x06 \x03(\x0b\x32\x18.hermes.VectorFieldStats\"e\n\x10VectorFieldStats\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12\x13\n\x0bvector_type\x18\x02 \x01(\t\x12\x15\n\rtotal_vectors\x18\x03 \x01(\x04\x12\x11\n\tdimension\x18\x04 \x01(\r\"\x8c\x01\n\x0bMemoryStats\x12\x13\n\x0btotal_bytes\x18\x01 \x01(\x04\x12\x34\n\x0findexing_buffer\x18\x02 \x01(\x0b\x32\x1b.hermes.IndexingBufferStats\x12\x32\n\x0esegment_reader\x18\x03 \x01(\x0b\x32\x1a.hermes.SegmentReaderStats\"\xdf\x01\n\x13IndexingBufferStats\x12\x13\n\x0btotal_bytes\x18\x01 \x01(\x04\x12\x16\n\x0epostings_bytes\x18\x02 \x01(\x04\x12\x1c\n\x14sparse_vectors_bytes\x18\x03 \x01(\x04\x12\x1b\n\x13\x64\x65nse_vectors_bytes\x18\x04 \x01(\x04\x12\x16\n\x0einterner_bytes\x18\x05 \x01(\x04\x12\x1c\n\x14position_index_bytes\x18\x06 \x01(\x04\x12\x14\n\x0cpending_docs\x18\x07 \x01(\r\x12\x14\n\x0cunique_terms\x18\x08 \x01(\r\"\xb7\x01\n\x12SegmentReaderStats\x12\x13\n\x0btotal_bytes\x18\x01 \x01(\x04\x12\x1d\n\x15term_dict_cache_bytes\x18\x02 \x01(\x04\x12\x19\n\x11store_cache_bytes\x18\x03 \x01(\x04\x12\x1a\n\x12sparse_index_bytes\x18\x04 \x01(\x04\x12\x19\n\x11\x64\x65nse_index_bytes\x18\x05 \x01(\x04\x12\x1b\n\x13num_segments_loaded\x18\x06 \x01(\r\"8\n\x12\x43reateIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\"&\n\x13\x43reateIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"=\n\nFieldEntry\x12\x0c\n\x04name\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue\"3\n\rNamedDocument\x12\"\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x12.hermes.FieldEntry\"Z\n\x1a\x42\x61tchIndexDocumentsRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12(\n\tdocuments\x18\x02 \x03(\x0b\x32\x15.hermes.NamedDocument\"p\n\x1b\x42\x61tchIndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\x12\x13\n\x0b\x65rror_count\x18\x02 \x01(\r\x12%\n\x06\x65rrors\x18\x03 \x03(\x0b\x32\x15.hermes.DocumentError\"-\n\rDocumentError\x12\r\n\x05index\x18\x01 \x01(\r\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"N\n\x14IndexDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\"\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x12.hermes.FieldEntry\"V\n\x16IndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\x12%\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x15.hermes.DocumentError\"#\n\rCommitRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"3\n\x0e\x43ommitResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x10\n\x08num_docs\x18\x02 \x01(\r\"\'\n\x11\x46orceMergeRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\";\n\x12\x46orceMergeResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0cnum_segments\x18\x02 \x01(\r\"(\n\x12\x44\x65leteIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"&\n\x13\x44\x65leteIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"\x14\n\x12ListIndexesRequest\"*\n\x13ListIndexesResponse\x12\x13\n\x0bindex_names\x18\x01 \x03(\t\"/\n\x19RetrainVectorIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"-\n\x1aRetrainVectorIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"$\n\x0eReorderRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"8\n\x0fReorderResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0cnum_segments\x18\x02 \x01(\r*\x81\x01\n\x12MultiValueCombiner\x12\x18\n\x14\x43OMBINER_LOG_SUM_EXP\x10\x00\x12\x10\n\x0c\x43OMBINER_MAX\x10\x01\x12\x10\n\x0c\x43OMBINER_AVG\x10\x02\x12\x10\n\x0c\x43OMBINER_SUM\x10\x03\x12\x1b\n\x17\x43OMBINER_WEIGHTED_TOP_K\x10\x04\x32\xdb\x01\n\rSearchService\x12\x37\n\x06Search\x12\x15.hermes.SearchRequest\x1a\x16.hermes.SearchResponse\x12\x46\n\x0bGetDocument\x12\x1a.hermes.GetDocumentRequest\x1a\x1b.hermes.GetDocumentResponse\x12I\n\x0cGetIndexInfo\x12\x1b.hermes.GetIndexInfoRequest\x1a\x1c.hermes.GetIndexInfoResponse2\xaf\x05\n\x0cIndexService\x12\x46\n\x0b\x43reateIndex\x12\x1a.hermes.CreateIndexRequest\x1a\x1b.hermes.CreateIndexResponse\x12P\n\x0eIndexDocuments\x12\x1c.hermes.IndexDocumentRequest\x1a\x1e.hermes.IndexDocumentsResponse(\x01\x12^\n\x13\x42\x61tchIndexDocuments\x12\".hermes.BatchIndexDocumentsRequest\x1a#.hermes.BatchIndexDocumentsResponse\x12\x37\n\x06\x43ommit\x12\x15.hermes.CommitRequest\x1a\x16.hermes.CommitResponse\x12\x43\n\nForceMerge\x12\x19.hermes.ForceMergeRequest\x1a\x1a.hermes.ForceMergeResponse\x12:\n\x07Reorder\x12\x16.hermes.ReorderRequest\x1a\x17.hermes.ReorderResponse\x12\x46\n\x0b\x44\x65leteIndex\x12\x1a.hermes.DeleteIndexRequest\x1a\x1b.hermes.DeleteIndexResponse\x12\x46\n\x0bListIndexes\x12\x1a.hermes.ListIndexesRequest\x1a\x1b.hermes.ListIndexesResponse\x12[\n\x12RetrainVectorIndex\x12!.hermes.RetrainVectorIndexRequest\x1a\".hermes.RetrainVectorIndexResponseb\x06proto3')
28
-
29
- _globals = globals()
30
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hermes_pb2', _globals)
32
- if not _descriptor._USE_C_DESCRIPTORS:
33
- DESCRIPTOR._loaded_options = None
34
- _globals['_SEARCHHIT_FIELDSENTRY']._loaded_options = None
35
- _globals['_SEARCHHIT_FIELDSENTRY']._serialized_options = b'8\001'
36
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._loaded_options = None
37
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_options = b'8\001'
38
- _globals['_MULTIVALUECOMBINER']._serialized_start=5021
39
- _globals['_MULTIVALUECOMBINER']._serialized_end=5150
40
- _globals['_QUERY']._serialized_start=25
41
- _globals['_QUERY']._serialized_end=402
42
- _globals['_SPARSEVECTORQUERY']._serialized_start=405
43
- _globals['_SPARSEVECTORQUERY']._serialized_end=698
44
- _globals['_DENSEVECTORQUERY']._serialized_start=701
45
- _globals['_DENSEVECTORQUERY']._serialized_end=913
46
- _globals['_TERMQUERY']._serialized_start=915
47
- _globals['_TERMQUERY']._serialized_end=955
48
- _globals['_BOOLEANQUERY']._serialized_start=957
49
- _globals['_BOOLEANQUERY']._serialized_end=1064
50
- _globals['_BOOSTQUERY']._serialized_start=1066
51
- _globals['_BOOSTQUERY']._serialized_end=1123
52
- _globals['_ALLQUERY']._serialized_start=1125
53
- _globals['_ALLQUERY']._serialized_end=1135
54
- _globals['_RANGEQUERY']._serialized_start=1138
55
- _globals['_RANGEQUERY']._serialized_end=1369
56
- _globals['_MATCHQUERY']._serialized_start=1371
57
- _globals['_MATCHQUERY']._serialized_end=1412
58
- _globals['_PREFIXQUERY']._serialized_start=1414
59
- _globals['_PREFIXQUERY']._serialized_end=1458
60
- _globals['_RERANKER']._serialized_start=1461
61
- _globals['_RERANKER']._serialized_end=1666
62
- _globals['_SEARCHREQUEST']._serialized_start=1669
63
- _globals['_SEARCHREQUEST']._serialized_end=1825
64
- _globals['_DOCADDRESS']._serialized_start=1827
65
- _globals['_DOCADDRESS']._serialized_end=1875
66
- _globals['_SEARCHHIT']._serialized_start=1878
67
- _globals['_SEARCHHIT']._serialized_end=2105
68
- _globals['_SEARCHHIT_FIELDSENTRY']._serialized_start=2036
69
- _globals['_SEARCHHIT_FIELDSENTRY']._serialized_end=2105
70
- _globals['_FIELDVALUELIST']._serialized_start=2107
71
- _globals['_FIELDVALUELIST']._serialized_end=2159
72
- _globals['_ORDINALSCORE']._serialized_start=2161
73
- _globals['_ORDINALSCORE']._serialized_end=2207
74
- _globals['_FIELDVALUE']._serialized_start=2210
75
- _globals['_FIELDVALUE']._serialized_end=2429
76
- _globals['_SPARSEVECTOR']._serialized_start=2431
77
- _globals['_SPARSEVECTOR']._serialized_end=2478
78
- _globals['_DENSEVECTOR']._serialized_start=2480
79
- _globals['_DENSEVECTOR']._serialized_end=2509
80
- _globals['_SEARCHRESPONSE']._serialized_start=2511
81
- _globals['_SEARCHRESPONSE']._serialized_end=2637
82
- _globals['_SEARCHTIMINGS']._serialized_start=2639
83
- _globals['_SEARCHTIMINGS']._serialized_end=2727
84
- _globals['_GETDOCUMENTREQUEST']._serialized_start=2729
85
- _globals['_GETDOCUMENTREQUEST']._serialized_end=2806
86
- _globals['_GETDOCUMENTRESPONSE']._serialized_start=2809
87
- _globals['_GETDOCUMENTRESPONSE']._serialized_end=2958
88
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_start=2036
89
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_end=2105
90
- _globals['_GETINDEXINFOREQUEST']._serialized_start=2960
91
- _globals['_GETINDEXINFOREQUEST']._serialized_end=3001
92
- _globals['_GETINDEXINFORESPONSE']._serialized_start=3004
93
- _globals['_GETINDEXINFORESPONSE']._serialized_end=3193
94
- _globals['_VECTORFIELDSTATS']._serialized_start=3195
95
- _globals['_VECTORFIELDSTATS']._serialized_end=3296
96
- _globals['_MEMORYSTATS']._serialized_start=3299
97
- _globals['_MEMORYSTATS']._serialized_end=3439
98
- _globals['_INDEXINGBUFFERSTATS']._serialized_start=3442
99
- _globals['_INDEXINGBUFFERSTATS']._serialized_end=3665
100
- _globals['_SEGMENTREADERSTATS']._serialized_start=3668
101
- _globals['_SEGMENTREADERSTATS']._serialized_end=3851
102
- _globals['_CREATEINDEXREQUEST']._serialized_start=3853
103
- _globals['_CREATEINDEXREQUEST']._serialized_end=3909
104
- _globals['_CREATEINDEXRESPONSE']._serialized_start=3911
105
- _globals['_CREATEINDEXRESPONSE']._serialized_end=3949
106
- _globals['_FIELDENTRY']._serialized_start=3951
107
- _globals['_FIELDENTRY']._serialized_end=4012
108
- _globals['_NAMEDDOCUMENT']._serialized_start=4014
109
- _globals['_NAMEDDOCUMENT']._serialized_end=4065
110
- _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_start=4067
111
- _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_end=4157
112
- _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_start=4159
113
- _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_end=4271
114
- _globals['_DOCUMENTERROR']._serialized_start=4273
115
- _globals['_DOCUMENTERROR']._serialized_end=4318
116
- _globals['_INDEXDOCUMENTREQUEST']._serialized_start=4320
117
- _globals['_INDEXDOCUMENTREQUEST']._serialized_end=4398
118
- _globals['_INDEXDOCUMENTSRESPONSE']._serialized_start=4400
119
- _globals['_INDEXDOCUMENTSRESPONSE']._serialized_end=4486
120
- _globals['_COMMITREQUEST']._serialized_start=4488
121
- _globals['_COMMITREQUEST']._serialized_end=4523
122
- _globals['_COMMITRESPONSE']._serialized_start=4525
123
- _globals['_COMMITRESPONSE']._serialized_end=4576
124
- _globals['_FORCEMERGEREQUEST']._serialized_start=4578
125
- _globals['_FORCEMERGEREQUEST']._serialized_end=4617
126
- _globals['_FORCEMERGERESPONSE']._serialized_start=4619
127
- _globals['_FORCEMERGERESPONSE']._serialized_end=4678
128
- _globals['_DELETEINDEXREQUEST']._serialized_start=4680
129
- _globals['_DELETEINDEXREQUEST']._serialized_end=4720
130
- _globals['_DELETEINDEXRESPONSE']._serialized_start=4722
131
- _globals['_DELETEINDEXRESPONSE']._serialized_end=4760
132
- _globals['_LISTINDEXESREQUEST']._serialized_start=4762
133
- _globals['_LISTINDEXESREQUEST']._serialized_end=4782
134
- _globals['_LISTINDEXESRESPONSE']._serialized_start=4784
135
- _globals['_LISTINDEXESRESPONSE']._serialized_end=4826
136
- _globals['_RETRAINVECTORINDEXREQUEST']._serialized_start=4828
137
- _globals['_RETRAINVECTORINDEXREQUEST']._serialized_end=4875
138
- _globals['_RETRAINVECTORINDEXRESPONSE']._serialized_start=4877
139
- _globals['_RETRAINVECTORINDEXRESPONSE']._serialized_end=4922
140
- _globals['_REORDERREQUEST']._serialized_start=4924
141
- _globals['_REORDERREQUEST']._serialized_end=4960
142
- _globals['_REORDERRESPONSE']._serialized_start=4962
143
- _globals['_REORDERRESPONSE']._serialized_end=5018
144
- _globals['_SEARCHSERVICE']._serialized_start=5153
145
- _globals['_SEARCHSERVICE']._serialized_end=5372
146
- _globals['_INDEXSERVICE']._serialized_start=5375
147
- _globals['_INDEXSERVICE']._serialized_end=6062
148
- # @@protoc_insertion_point(module_scope)