Skip to content

NikhilMathursProjects/Text2SQL

Repository files navigation

Text2SQL

Currently all the data and files are static: cloud_costs.db all_profiles.json azure_cost_desc.json aws_cost_desc.json

So we cannot change the data in mock_data_sets dynamically, as it is using what is stored in the above files, will update this to run dynamically for any csv stored in the folder mock_data_sets.(Currently working on this)

Steps to run sequentially: Firstly, install all required libraries, do : pip install -r requirements.txt

Create a file named (.env) ,and place the variable 'GOOGLE_API_KEY' = <'your_api_key'> You can get the api key from https://aistudio.google.com/api-keys

Then run the api.py file, which starts the fast api server

api.py [Run this]

The FastAPI code which allows a user to ask a question and get an answer. Run this and use api_caller.py to get the responses

You can use api_caller.py to send requests and get responses update the queries array with any queries.

api_caller.py [Python code to send requests and get responses]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages