Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
495 changes: 495 additions & 0 deletions agent_genie/README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions agent_genie/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,14 +975,14 @@ async def query(request: Request):
table_schema = {}
if catalog_name and schema_name:
try:
tables_result = get_tables(catalog_name, schema_name, fallback_workspace_url, None)
tables_result = get_tables(catalog_name, schema_name, fallback_workspace_url, fallback_access_token)
if tables_result["success"]:
table_schema = {}
for table in tables_result["tables"]:
table_name = table["name"]
try:
columns_result = get_table_columns(catalog_name, schema_name, table_name, fallback_workspace_url, None)
columns_result = get_table_columns(catalog_name, schema_name, table_name, fallback_workspace_url, fallback_access_token)

if columns_result["success"]:
columns = columns_result["columns"]
table_schema[table_name] = columns
Expand Down
35 changes: 14 additions & 21 deletions agent_genie/databricks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,17 @@ resources:
- "vectorsearch.vector-search-indexes"
- "catalog.connections"

# --- Installer job to persist Tavily key into a secret and write optional config ---
jobs:
install_app:
name: "${var.project_name} - Install/Configure"
tasks:
- task_key: configure_app
notebook_task:
notebook_path: "./notebooks/setup_app" # create this notebook
base_parameters:
TAVILY_API_KEY: "${var.tavily_api_key}"
SECRET_SCOPE: "${var.secret_scope}"
SECRET_KEY: "${var.secret_key}"
# Add compute for your workspace (example placeholders):
# existing_cluster_id: "<your-cluster-id>"
# OR:
# job_clusters:
# - job_cluster_key: "install_cluster"
# new_cluster:
# spark_version: "14.3.x-scala2.12"
# node_type_id: "i3.xlarge"
# num_workers: 0
# --- Installer job disabled until ./notebooks/setup_app exists; uncomment when ready ---
# jobs:
# install_app:
# name: "${var.project_name} - Install/Configure"
# tasks:
# - task_key: configure_app
# notebook_task:
# notebook_path: "./notebooks/setup_app"
# base_parameters:
# TAVILY_API_KEY: "${var.tavily_api_key}"
# SECRET_SCOPE: "${var.secret_scope}"
# SECRET_KEY: "${var.secret_key}"
# # existing_cluster_id: "<your-cluster-id>"
# # OR job_clusters with new_cluster (spark_version, node_type_id, num_workers: 0)
Binary file added agent_genie/images/media/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added agent_genie/images/media/image9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions agent_genie/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2304,9 +2304,11 @@ <h1>Databricks Genie++ Omni-Analytics Platform</h1>
// Highlight JSON-like structures
if (formatted.includes('{') && formatted.includes('}')) {
try {
// Try to parse and pretty-print JSON
// Try to parse and pretty-print JSON (escape to prevent XSS when assigning via innerHTML)
const parsed = JSON.parse(content);
formatted = '<pre>' + JSON.stringify(parsed, null, 2) + '</pre>';
const jsonString = JSON.stringify(parsed, null, 2);
const escapedJson = escapeHtml(jsonString);
formatted = '<pre>' + escapedJson + '</pre>';
} catch (e) {
// Not valid JSON, keep original formatting
}
Expand Down
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this is removed as well?

This file was deleted.

Loading