bitflicker64 commented on code in PR #572:
URL: https://github.com/apache/hugegraph-doc/pull/572#discussion_r4654370569


##########
content/en/docs/quickstart/hugegraph-ai/config-reference.md:
##########
@@ -147,13 +159,11 @@ The same choice is available in the `5. Set up the vector 
engine.` panel of the
 > [!WARNING]
 > In production, set `ENABLE_LOGIN=True`, replace `USER_TOKEN` and 
 > `ADMIN_TOKEN`, and enforce a source IP allowlist at the firewall or network 
 > entry point. This protects only HugeGraph-LLM. Separately enable [Server 
 > authentication and authorization](/docs/config/config-authentication/), 
 > retain Server audit logs (normally `audit-*.log`), and grant `GRAPH_USER` 
 > minimum required permissions. The two services use different credentials.
 
-## Minimal OpenAI Configuration
+## Minimal OpenAI Configuration {#minimal-openai-configuration}
 
 ```properties
 LANGUAGE=EN
 CHAT_LLM_TYPE=openai

Review Comment:
   Minor: `OPENAI_EXTRACT_LANGUAGE_MODEL` and `OPENAI_TEXT2GQL_LANGUAGE_MODEL` 
further down this block are role-specific fields, so `LLMConfig._canonical` 
sets `extract_use_chat` and `text2gql_use_chat` to `False` and this example 
detaches both roles from Chat, contrary to the inheritance this page describes. 
Drop those two lines here and in 
`content/cn/docs/quickstart/hugegraph-ai/config-reference.md`, or state that 
setting them makes the roles independent.



##########
content/en/docs/quickstart/hugegraph-ai/hugegraph-llm.md:
##########
@@ -34,7 +41,8 @@ cd hugegraph-ai
 cp docker/env.template docker/.env
 # Edit docker/.env and set PROJECT_PATH to the absolute path of this repository
 touch hugegraph-llm/.env
-# Set GRAPH_URL=server:8080 and matching GRAPH_USER / GRAPH_PWD in 
hugegraph-llm/.env
+# Set GRAPH_URL=http://server:8080 and matching GRAPH_USER / GRAPH_PWD in 
hugegraph-llm/.env
+./scripts/build_llm_image.sh

Review Comment:
   Minor: `build_llm_image.sh` runs `scripts/version.py` with `python3`, and 
that script imports `tomllib`, so this step fails with `ModuleNotFoundError` 
wherever `python3` is earlier than 3.11, such as the macOS system Python 3.9. 
State the Python requirement and the `PYTHON_FOR_RELEASE` override here and in 
`content/cn/docs/quickstart/hugegraph-ai/hugegraph-llm.md`.
   
   ```suggestion
   # build_llm_image.sh needs Python 3.12+ as python3; otherwise set 
PYTHON_FOR_RELEASE to a Python 3.12+ interpreter
   ./scripts/build_llm_image.sh
   ```



-- 
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]

Reply via email to