Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DhruvAtreja/datavisualization_langgraph
/ functions
Functions
74 in github.com/DhruvAtreja/datavisualization_langgraph
⨍
Functions
74
◇
Types & classes
25
↓ 10 callers
Method
invoke
(self, prompt: ChatPromptTemplate, **kwargs)
backend_py/my_agent/LLMManager.py:8
↓ 10 callers
Method
invoke
( prompt: ChatPromptTemplate, kwargs: Record<string, any> )
backend_js/my_agent/LLMManager.ts:15
↓ 4 callers
Method
_format_other_visualizations
(self, visualization, question, sql_query, results)
backend_py/my_agent/DataFormatter.py:202
↓ 4 callers
Method
_format_other_visualizations
( visualization: string, question: string, sql_query: string, results: any )
backend_js/my_agent/DataFormatter.ts:316
↓ 3 callers
Method
get_schema
Retrieve the database schema.
backend_py/my_agent/DatabaseManager.py:10
↓ 3 callers
Method
get_schema
(uuid: string)
backend_js/my_agent/DatabaseManager.ts:13
↓ 2 callers
Method
create_workflow
Create and configure the workflow graph.
backend_py/my_agent/WorkflowManager.py:12
↓ 2 callers
Method
create_workflow
()
backend_js/my_agent/WorkflowManager.ts:19
↓ 2 callers
Method
execute_query
Execute SQL query on the remote database and return results.
backend_py/my_agent/DatabaseManager.py:21
↓ 2 callers
Method
execute_query
(uuid: string, query: string)
backend_js/my_agent/DatabaseManager.ts:29
↓ 1 callers
Method
_format_bar_data
(self, results, question)
backend_py/my_agent/DataFormatter.py:166
↓ 1 callers
Method
_format_bar_data
( results: any, question: string )
backend_js/my_agent/DataFormatter.ts:264
↓ 1 callers
Method
_format_line_data
(self, results, question)
backend_py/my_agent/DataFormatter.py:42
↓ 1 callers
Method
_format_line_data
( results: any, question: string )
backend_js/my_agent/DataFormatter.ts:79
↓ 1 callers
Method
_format_scatter_data
(self, results)
backend_py/my_agent/DataFormatter.py:129
↓ 1 callers
Method
_format_scatter_data
( results: any )
backend_js/my_agent/DataFormatter.ts:210
↓ 1 callers
Function
convertCsvToSqlite
(csvFilePath, sqliteFilePath)
sqlite_server/routes/ProjectRoutes.js:70
↓ 1 callers
Function
handleQuestionClick
(question: string)
frontend/src/components/playground/Playground.tsx:154
↓ 1 callers
Function
processTable
(index)
sqlite_server/routes/ProjectRoutes.js:206
↓ 1 callers
Method
returnGraph
(self)
backend_py/my_agent/WorkflowManager.py:40
↓ 1 callers
Method
returnGraph
()
backend_js/my_agent/WorkflowManager.ts:46
↓ 1 callers
Function
triggerFileInput
()
frontend/src/components/UploadButton.tsx:28
Function
App
({ Component, pageProps }: AppProps)
frontend/src/pages/_app.tsx:7
Function
BarGraph
({ data })
frontend/src/components/graphs/BarGraph.tsx:28
Function
Form
({ selectedQuestion, setSelectedQuestion, onFormSubmit, disabled }: FormProps)
frontend/src/components/playground/Form.tsx:10
Function
Home
()
frontend/src/pages/index.tsx:7
Function
HorizontalBarGraph
({ data })
frontend/src/components/graphs/HorizontalBarGraph.tsx:19
Function
LineGraph
({ data })
frontend/src/components/graphs/LineGraph.tsx:108
Function
Logo
({ setGraphState }: { setGraphState: (graphState: GraphState | null) => void })
frontend/src/components/Logo.tsx:5
Function
PieChartComponent
({ data })
frontend/src/components/graphs/PieChart.tsx:20
Function
Playground
()
frontend/src/components/playground/Playground.tsx:36
Function
QuestionDisplay
({ displayedQuestions, handleQuestionClick, }: { displayedQuestions: string[] handleQuestionClick: (qu
frontend/src/components/playground/QuestionDisplay.tsx:1
Function
ScatterPlot
({ data })
frontend/src/components/graphs/ScatterPlot.tsx:67
Function
Sidebar
({ graphState, onClose })
frontend/src/components/playground/Sidebar.tsx:10
Function
Stream
({ graphState }: { graphState: GraphState })
frontend/src/components/playground/Stream.tsx:4
Function
StreamRow
({ heading, information }: { heading: string; information: string })
frontend/src/components/playground/StreamRow.tsx:3
Function
UploadButton
({ onFileUpload, disabled })
frontend/src/components/UploadButton.tsx:8
Method
__init__
(self)
backend_py/my_agent/DataFormatter.py:8
Method
__init__
(self)
backend_py/my_agent/LLMManager.py:5
Method
__init__
(self)
backend_py/my_agent/DatabaseManager.py:7
Method
__init__
(self)
backend_py/my_agent/WorkflowManager.py:8
Method
__init__
(self)
backend_py/my_agent/SQLAgent.py:7
Function
buildEslintCommand
(filenames)
frontend/.lintstagedrc.js:4
Method
choose_visualization
Choose an appropriate visualization for the data.
backend_py/my_agent/SQLAgent.py:229
Method
choose_visualization
(state: State)
backend_js/my_agent/SQLAgent.ts:299
Method
constructor
()
backend_js/my_agent/DataFormatter.ts:8
Method
constructor
()
backend_js/my_agent/DatabaseManager.ts:6
Method
constructor
()
backend_js/my_agent/LLMManager.ts:7
Method
constructor
()
backend_js/my_agent/WorkflowManager.ts:10
Method
constructor
()
backend_js/my_agent/SQLAgent.ts:11
Function
deleteOldFiles
()
sqlite_server/routes/ProjectRoutes.js:32
Method
execute_sql
Execute SQL query and return results.
backend_py/my_agent/SQLAgent.py:199
Method
execute_sql
(state: State)
backend_js/my_agent/SQLAgent.ts:255
Method
format_data_for_visualization
Format the data for the chosen visualization type.
backend_py/my_agent/DataFormatter.py:12
Method
format_data_for_visualization
( state: Record<string, any> )
backend_js/my_agent/DataFormatter.ts:20
Method
format_results
Format query results into a human-readable response.
backend_py/my_agent/SQLAgent.py:213
Method
format_results
(state: State)
backend_js/my_agent/SQLAgent.ts:271
Method
generate_sql
Generate SQL query based on parsed question and unique nouns.
backend_py/my_agent/SQLAgent.py:65
Method
generate_sql
(state: State)
backend_js/my_agent/SQLAgent.ts:94
Method
get_unique_nouns
Find unique nouns in relevant tables and columns.
backend_py/my_agent/SQLAgent.py:44
Method
get_unique_nouns
(state: State)
backend_js/my_agent/SQLAgent.ts:65
Function
handleClick
()
frontend/src/components/UploadButton.tsx:32
Function
handleClickOutside
(event: MouseEvent)
frontend/src/components/playground/Playground.tsx:142
Function
handleClose
()
frontend/src/components/playground/Sidebar.tsx:17
Function
handleFileChange
(event: React.ChangeEvent<HTMLInputElement>)
frontend/src/components/UploadButton.tsx:12
Function
handleSubmit
(e: React.FormEvent<HTMLFormElement>)
frontend/src/components/playground/Form.tsx:13
Function
handler
(req: any, res: any)
frontend/src/pages/api/run.ts:3
Method
parse_question
Parse user question and identify relevant tables and columns.
backend_py/my_agent/SQLAgent.py:11
Method
parse_question
(state: State)
backend_js/my_agent/SQLAgent.ts:24
Method
run_sql_agent
Run the SQL agent workflow and return the formatted answer and visualization recommendation.
backend_py/my_agent/WorkflowManager.py:43
Method
run_sql_agent
( question: string, uuid: string )
backend_js/my_agent/WorkflowManager.ts:50
Function
toggleSidebar
()
frontend/src/components/playground/Playground.tsx:162
Method
validate_and_fix_sql
Validate and fix the generated SQL query.
backend_py/my_agent/SQLAgent.py:127
Method
validate_and_fix_sql
(state: State)
backend_js/my_agent/SQLAgent.ts:169