dinhquangson commited on
Commit
8c18188
1 Parent(s): dbddfaf

Update QueryMetadataExtractor.py

Browse files
Files changed (1) hide show
  1. QueryMetadataExtractor.py +1 -0
QueryMetadataExtractor.py CHANGED
@@ -48,6 +48,7 @@ class QueryMetadataExtractor:
48
  @component.output_types(filters=Dict[str, str])
49
  def run(self, query: str, metadata_fields: List[str]):
50
  result = self.pipeline.run({'builder': {'query': query, 'metadata_fields': metadata_fields}})
 
51
  metadata = json.loads(result['llm']['replies'][0])
52
 
53
  # this can be done with specific data structures and in a more sophisticated way
 
48
  @component.output_types(filters=Dict[str, str])
49
  def run(self, query: str, metadata_fields: List[str]):
50
  result = self.pipeline.run({'builder': {'query': query, 'metadata_fields': metadata_fields}})
51
+ print(result)
52
  metadata = json.loads(result['llm']['replies'][0])
53
 
54
  # this can be done with specific data structures and in a more sophisticated way