Demo 2 – Use Table from New Session

# Connect to Hippo 
hc = HippoClient(["ip:port"], username = "", pwd = "")
 
# Get table
client = hc.get_table("your_table")
 
# Insert
client.insert_rows(
    [
        [3, 4, 5],
        [[-0.1, -0.5], [0.7, 0.1], [0.1, -0.2]],
        ["how are you", "how you doing", "hello"],
        [100, 200, 300]
    ],
)
 
# Vector similarity search
result = client.query(
    "vector",
    [[0.9, 0.5]],
    ["pk", "text", "vector", "number"],
    3
)
print(result)