mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-25 16:15:35 +00:00
Make sure content_type exists (#1938)
This commit is contained in:
parent
c85ac2baec
commit
202ef276ee
@ -7,7 +7,6 @@ import logging
|
||||
import json
|
||||
import numpy as np
|
||||
from tqdm import tqdm
|
||||
import pandas as pd
|
||||
|
||||
from haystack.schema import Document
|
||||
from haystack.document_stores import BaseDocumentStore
|
||||
@ -220,6 +219,7 @@ class WeaviateDocumentStore(BaseDocumentStore):
|
||||
# Converting JSON-string to original datatype (string or nested list)
|
||||
content = json.loads(str(props.get(self.content_field)))
|
||||
|
||||
content_type = None
|
||||
if props.get("contenttype") is not None:
|
||||
content_type = str(props.pop("contenttype"))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user