Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CL-lau/SQL-GPT
/ functions
Functions
176 in github.com/CL-lau/SQL-GPT
⨍
Functions
176
◇
Types & classes
32
↳
Endpoints
1
Method
__init__
(self, embeddingPath='./embedding', embeddingFile='test', need_redis=False,
gpt/FILEGPT.py:9
Method
__init__
(self, embeddingPath='./embedding', embeddingFile='test', need_redis=False, embedding_type='default')
embedding/embeddingHelper.py:62
Method
__init__
(self)
embedding/embeddingHelper.py:547
Method
__init__
(self, embedding_function: Optional[str] = None)
embedding/embeddingHelper.py:578
Method
__init__
(self, root)
front/DatabaseManagerGUI.py:8
Method
__init__
(self, db_urls)
front/DatabaseManagerGUI.py:74
Method
_call
( self, prompt: str, stop: Optional[List[str]] = None, run_manager: Optional[C
gpt/docGPT.py:213
Method
_llm_type
(self)
gpt/docGPT.py:210
Method
addConversation
(self, question: str, answer: str)
utils/message_content.py:26
Method
addFile
(self, fileName, filePath)
gpt/FILEGPT.py:30
Method
add_conversation
(self, conversation_id: str, role_name: str, content: str)
utils/message_content.py:95
Method
add_conversation_id
(self, conversation_id: str)
utils/message_content.py:91
Method
add_db
(self, dbAddress: Optional[str], dbPort: Optional[str], userName: Optional[str], password: Optional[str], dbNa
sql/SQLOperator.py:67
Method
add_file_by_texts
(self, fileID: Optional[str] = None, texts: list[str] = None)
gpt/llm.py:92
Method
askFile
(self, question, top_k=3)
gpt/FILEGPT.py:23
Method
batchQuery
(self, texts, topK=5, where=None, where_document=None)
embedding/embeddingHelper.py:130
Method
batchQueryByEmbedding
(self, embeddings, topK=5, where=None, where_document=None)
embedding/embeddingHelper.py:197
Method
batchQuery_embedding_postprocessing
(self, text)
embedding/embeddingHelper.py:469
Method
batchQuery_embedding_preprocessing
(self, text)
embedding/embeddingHelper.py:441
Method
batchQuery_postprocessing
(self, text)
embedding/embeddingHelper.py:455
Method
cahing_finished_callback
(self, future)
embedding/embeddingHelper.py:540
Method
contextual_chat
(self, questions, system_assistant=None, assistant=None, temperature=None, need_stream=False)
gpt/chat.py:155
Method
covert
(self)
utils/message_content.py:37
Method
create_doc_chat
Add a custom docGPT tool
gpt/agent.py:53
Method
create_llm_chain
Add a llm tool
gpt/agent.py:64
Method
create_qa_chain
(self)
gpt/docGPT.py:34
Method
create_qa_chain
(self)
gpt/docGPT.py:50
Method
create_qa_chain
(self)
gpt/docGPT.py:70
Method
create_qa_chain
( self, chain_type: str ='stuff', verbose: bool = True )
gpt/docGPT.py:170
Method
delete_by_id
(self, conversation_id: str)
sql/conversationORM.py:105
Function
error
Log a message with severity 'ERROR' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre
logger/selflogger.py:4
Method
execute_query
(self)
front/DatabaseManagerGUI.py:61
Method
from_documents
(self, documents: list[Document], dbId: str, embedding=OpenAIEmbeddings(), persist_dire
embedding/embeddingHelper.py:551
Method
from_texts
(self, texts: list[str], dbId: str, embedding=OpenAIEmbeddings(), persist_directory: str = None)
embedding/embeddingHelper.py:558
Method
get_calculate_chain
(self)
gpt/agent.py:30
Method
get_db_structure_by_jdbc
:param table_name: :param jdbc :return: 数据库结构信息
sql/SQLOperator.py:248
Method
get_files
(path: str, filetype: str = '.pdf')
model/data_connection.py:26
Function
get_response
(query: str, model)
components/response_handler.py:5
Method
get_searp_chain
(self)
gpt/agent.py:42
Function
index
()
front/front.py:11
Function
info
Log a message with severity 'INFO' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre-
logger/selflogger.py:16
Function
init_sidebar
()
components/init_sidebar.py:5
Method
initialize
(self, tools)
gpt/agent.py:79
Method
is_valid
(cls)
gpt/check_api_key.py:16
Method
is_valid
(cls)
gpt/check_api_key.py:22
Method
is_valid
(cls)
gpt/check_api_key.py:45
Method
llm
(self)
gpt/agent.py:22
Method
llm
(self)
gpt/docGPT.py:133
Function
message_handler
(channel, message)
memory/redisHelper.py:143
Method
operate_SQL
(self, sql)
sql/SQLOperator.py:172
Method
operate_sql
(self, sql: Optional[str], dbID: Optional[str] = None)
gpt/llm.py:183
Method
optimizeSQL
(self, sql: Optional[str], only_sql: Optional[bool] = True, dbID: Optional[str] = None)
gpt/llm.py:161
Method
queryByEmbedding
(self, embedding, topK=5, where=None, where_document=None)
embedding/embeddingHelper.py:168
Method
query_all
(self)
sql/conversationORM.py:43
Method
query_by_id
(self, conversation_id: str)
sql/conversationORM.py:83
Method
query_embedding_postprocessing
(self, text, thresholds=.9)
embedding/embeddingHelper.py:462
Method
query_embedding_preprocessing
(self, text, thresholds=.9)
embedding/embeddingHelper.py:434
Method
query_latest_conversations
(self, conversation_id: str)
sql/conversationORM.py:50
Method
query_postprocessing
(self, text: str)
embedding/embeddingHelper.py:448
Method
roleCheck
(self, role_type: str)
utils/message_content.py:45
Method
run
(self, query: str)
gpt/agent.py:91
Function
side_bar
()
components/sidebar.py:9
Method
similarity_search
(self, query: str, fileID: str, topK: int = 4)
embedding/embeddingHelper.py:564
Function
singleton
(cls)
sql/SQLOperator.py:18
Function
singleton
(cls)
embedding/embeddingHelper.py:40
Method
split_documents_2texts
( documents: list[Document], chunk_size: int = 300, chunk_overlap: int = 0
model/data_connection.py:72
Function
sql_chat
(dbId: Optional[str], sqlGPT: Optional[SqlGPT] = None)
app.py:42
Function
theme
()
components/theme.py:4
Method
transEmbedding
(self, text, model_type, refreshModel=False)
embedding/embeddingHelper.py:476
Method
transRole
(self, role_type: str)
utils/message_content.py:48
Function
transaction_example
(pipe)
memory/redisHelper.py:138
Method
update_column_list
(self)
front/DatabaseManagerGUI.py:54
Method
update_table_list
(self)
front/DatabaseManagerGUI.py:48
Function
warn
(msg, *args, **kwargs)
logger/selflogger.py:37
Function
wrapper
(*args, **kwargs)
sql/SQLOperator.py:21
Function
wrapper
(*args, **kwargs)
embedding/embeddingHelper.py:43
← previous
101–176 of 176, ranked by callers