INSIGHTS
Introducing Insights
A couple of lines explaining what it is so developers can orientate themselves. Maybe mention the difference between SDK and Enterprise.
### User's Query
query = 'Summarize the Q1 2024 AAA Earnings Statement'
### Create the dense query vector
dense_query = [embedding_model.encode(query).tolist()]
### Create the sparse query vector
sparse_query = [dict(Counter(y)) for y in token([query],
padding=True,max_length=None)['input_ids']]
sparse_query[0].pop(101);sparse_query[0].pop(102);
### Hybrid search
table.hybrid_search(dense_vectors=dense_query,
sparse_vectors=sparse_query,
n=5)
### Time Series Window Query Vector
q = AAA_df['price'][100].tolist()
### Search for Similar Time Series Windows
table.search(vectors=[q], n=10)
### Outlier Search for Anomaly Detection
table.search(vectors=[q], n=-10)[0]
### Multi Search over Multiple Temporal Windows Simultaneously
table.search(vectors=[q, q1, q2], n=10)