-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d71b6f
commit c29bd5f
Showing
19 changed files
with
474 additions
and
249 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
nidx/.sqlx/query-ef25d1b091b8edce55dcd7f0a2f528537cd9329ab7297b81ace0aba8c0e1bb0e.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...e16de56ea704d4b1c8784dafcce996983342.json → ...b475f6af02768c22f0e583c74062e2e821ce.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
syntax = "proto3"; | ||
|
||
package nidx; | ||
|
||
import "nucliadb_protos/nodereader.proto"; | ||
import "nucliadb_protos/nodewriter.proto"; | ||
|
||
service NidxApi { | ||
rpc GetShard(nodereader.GetShardRequest) returns (noderesources.Shard) {} | ||
|
||
// rpc GetShardFiles(GetShardFilesRequest) returns (ShardFileList) {}; | ||
// rpc DownloadShardFile(DownloadShardFileRequest) returns (stream | ||
// ShardFileChunk) {}; | ||
|
||
rpc NewShard(nodewriter.NewShardRequest) returns (noderesources.ShardCreated) {} | ||
rpc DeleteShard(noderesources.ShardId) returns (noderesources.ShardId) {} | ||
rpc ListShards(noderesources.EmptyQuery) returns (noderesources.ShardIds) {} | ||
// rpc GC(noderesources.ShardId) returns (GarbageCollectorResponse) {} | ||
// rpc Merge(noderesources.ShardId) returns (MergeResponse) {} | ||
|
||
// rpc SetResource(noderesources.Resource) returns (OpStatus) {} | ||
// rpc SetResourceFromStorage(IndexMessage) returns (OpStatus) {} | ||
// rpc RemoveResource(noderesources.ResourceID) returns (OpStatus) {} | ||
|
||
rpc AddVectorSet(nodewriter.NewVectorSetRequest) returns (nodewriter.OpStatus) {} // New | ||
rpc RemoveVectorSet(noderesources.VectorSetID) returns (nodewriter.OpStatus) {} | ||
rpc ListVectorSets(noderesources.ShardId) returns (noderesources.VectorSetList) {} | ||
|
||
rpc GetMetadata(noderesources.EmptyQuery) returns (noderesources.NodeMetadata) {} | ||
} | ||
|
||
service NidxSearcher { | ||
rpc DocumentSearch(nodereader.DocumentSearchRequest) returns (nodereader.DocumentSearchResponse) {} | ||
rpc ParagraphSearch(nodereader.ParagraphSearchRequest) returns (nodereader.ParagraphSearchResponse) {} | ||
rpc VectorSearch(nodereader.VectorSearchRequest) returns (nodereader.VectorSearchResponse) {} | ||
rpc RelationSearch(nodereader.RelationSearchRequest) returns (nodereader.RelationSearchResponse) {} | ||
rpc DocumentIds(noderesources.ShardId) returns (nodereader.IdCollection) {} | ||
rpc ParagraphIds(noderesources.ShardId) returns (nodereader.IdCollection) {} | ||
rpc VectorIds(noderesources.VectorSetID) returns (nodereader.IdCollection) {} | ||
rpc RelationIds(noderesources.ShardId) returns (nodereader.IdCollection) {} | ||
rpc RelationEdges(noderesources.ShardId) returns (nodereader.EdgeList) {} | ||
|
||
rpc Search(nodereader.SearchRequest) returns (nodereader.SearchResponse) {} | ||
rpc Suggest(nodereader.SuggestRequest) returns (nodereader.SuggestResponse) {} | ||
|
||
// Streams | ||
rpc Paragraphs(nodereader.StreamRequest) returns (stream nodereader.ParagraphItem) {} | ||
rpc Documents(nodereader.StreamRequest) returns (stream nodereader.DocumentItem) {} | ||
} |
Oops, something went wrong.