Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ToolServer/ToolServerManager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def wait_for_node_startup(node_id:str):
node_id (str): The unique identifier of the node whose startup is to be waited for.

Returns:
bool: True if node has started successfully, False if time out occured before node startup.
bool: True if node has started successfully, False if time out occurred before node startup.

Raises:
HTTPException: If node is not found in the databse.
Expand Down
8 changes: 4 additions & 4 deletions XAgent/vector_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_info(self):
and store the total vector count in the vector_count attribute.

Raises:
Exception: An error occured accessing the database.
Exception: An error occurred accessing the database.

"""

Expand Down Expand Up @@ -110,7 +110,7 @@ def delete_sentence(self, sentence:str):
sentence (str): The sentence to be deleted.

Raises:
Exception: An error occured deleting the sentence.
Exception: An error occurred deleting the sentence.

"""

Expand All @@ -130,7 +130,7 @@ def insert_sentence(self, vec_sentence:str, sentence:str, namespace=""):
namespace (str, optional): The namespace of the vector. Defaults to "".

Raises:
Exception: An error occured inserting the sentence.
Exception: An error occurred inserting the sentence.

"""

Expand Down Expand Up @@ -163,7 +163,7 @@ def search_similar_sentences(self, query_sentence:str, namespace="", top_k=1):
object: The most similar sentences.

Raises:
Exception: An error occured searching the database.
Exception: An error occurred searching the database.

"""

Expand Down