Natural Language Processing¶

Logo

Natural language processing (NLP) is a machine learning technology that gives computers the ability to interpret, manipulate, and comprehend human language.

Prompt:

An artificial intelligence (AI) prompt is a mode of interaction between a human and a large language model that lets

the model generate the intended output. This interaction can be in the form of a question, text, code snippets or examples.

Normal text to SQL:

 async def nlp_to_sql(
     self,
     data_base: SQLDatabase,
     normal_text: str,
     prompt: str = None
):

The nlp_to_sql() function is used for generate the sql query from the normal text. It’s return the sql response object. The function have three params first one is for get Database object next one is for get user query text and the last one for get prompt

get_llm_chain()

i the prompt value is None then the default prompt will be apply.