Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Azure-Samples/nlp-sql-in-a-box
/ functions
Functions
17 in github.com/Azure-Samples/nlp-sql-in-a-box
⨍
Functions
17
◇
Types & classes
5
↓ 6 callers
Method
synthesize
Synthesize text to speech and play it through the speaker
src/speech/service.py:44
↓ 2 callers
Method
recognize
Recognize speech from the microphone and convert it to text
src/speech/service.py:22
↓ 2 callers
Method
run
Run the orchestrator
src/orchestrator/service.py:17
↓ 1 callers
Function
create_table
Create the ExplorationProduction table in the database.
src/database/utils.py:22
↓ 1 callers
Function
get_connection
(server_name: str, database_name: str, token: str)
src/database/service.py:74
↓ 1 callers
Function
insert_record
Insert a fake record into the ExplorationProduction table.g
src/database/utils.py:46
↓ 1 callers
Function
main
()
src/app.py:25
↓ 1 callers
Method
message
Send a message to the kernel and get a response.
src/kernel/service.py:48
↓ 1 callers
Method
setup
Set up the database by creating the table and inserting fake records.
src/database/service.py:27
↓ 1 callers
Function
table_exists
Check whether the ExplorationProduction table exists in the database.
src/database/utils.py:5
Method
__init__
(self, server_name: str, database_name: str, credential: DefaultAzureCredential)
src/database/service.py:22
Method
__init__
(self, credential: DefaultAzureCredential, resource_id: str, region: str)
src/speech/service.py:15
Method
__init__
(self, db: Database)
src/plugins/database_plugin.py:16
Method
__init__
(self, database_service: Database, credential: DefaultAzureCredential, openai_endpoint: str, openai_deployment
src/kernel/service.py:26
Method
__init__
(self, speech_service: Speech, kernel: Kernel)
src/orchestrator/service.py:13
Method
query
Query the database with the given SQL query.
src/database/service.py:55
Method
query
(self, query: Annotated[str, "The SQL query"])
src/plugins/database_plugin.py:20