imbajin commented on code in PR #147:
URL:
https://github.com/apache/incubator-hugegraph-ai/pull/147#discussion_r1897632411
##########
hugegraph-llm/src/hugegraph_llm/utils/vector_index_utils.py:
##########
@@ -70,6 +75,8 @@ def clean_vector_index():
def build_vector_index(input_file, input_text):
+ if input_file and input_text:
+ raise gr.Error("Please only choose one between file and text.")
texts = read_documents(input_file, input_text)
builder = KgBuilder(LLMs().get_chat_llm(), Embeddings().get_embedding(),
get_hg_client())
Review Comment:
Maybe we should transfer the default file demo to `text`?
Avoid always needing to manually delete it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]