Json Linker
Json Linker Class Documentation
Overview
Usage
LINKER_TYPE="json"
JSON_LINKER_PATH="json file path(name)"from RAGchain.utils.linker import JsonLinker
# Create an instance of the JsonLinker class
linker = JsonLinker()
# Check the connection to the Json database
if linker.connection_check():
print("Connected to Json database")
# Put JSON data into the Json database
linker.put_json("1234", {"name": "John", "age": 30})
# Get JSON data from the Json database
data = linker.get_json(["1234"])
print(data)
# Flush the Json database
linker.flush_db()Last updated