internal/api/passages.go
internal/api · 62 lines · 3 declarations · source
Declarations
type passageRequest
type passageRequest struct {
Question string `json:"question"`
Limit *int `json:"limit,omitempty"`
Candidates int `json:"candidates,omitempty"`
DataSubjectID string `json:"data_subject_id,omitempty"`
SourceRole string `json:"source_role,omitempty"`
}
method Server.searchPassages
func (s *Server) searchPassages(w http.ResponseWriter, r *http.Request, grant credential.Grant)
method Server.passageError
func (s *Server) passageError(w http.ResponseWriter, r *http.Request, grant credential.Grant, err error)