Close the HTTP session or client
def close() -> None
from morphik import Morphik db = Morphik() # Perform operations doc = db.ingest_text("Sample content") # Close the session when done db.close()
close()
from morphik import Morphik with Morphik() as db: doc = db.ingest_text("Sample content") # Session is automatically closed when exiting the with block
Was this page helpful?