Feat/support parent child chunk (#12092)
This commit is contained in:
parent
017d7538ae
commit
9231fdbf4c
54 changed files with 2578 additions and 808 deletions
|
|
@ -34,8 +34,16 @@ segment_fields = {
|
|||
"document": fields.Nested(document_fields),
|
||||
}
|
||||
|
||||
child_chunk_fields = {
|
||||
"id": fields.String,
|
||||
"content": fields.String,
|
||||
"position": fields.Integer,
|
||||
"score": fields.Float,
|
||||
}
|
||||
|
||||
hit_testing_record_fields = {
|
||||
"segment": fields.Nested(segment_fields),
|
||||
"child_chunks": fields.List(fields.Nested(child_chunk_fields)),
|
||||
"score": fields.Float,
|
||||
"tsne_position": fields.Raw,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue