Skip to content

feat(llm): support log_block in RAG platform & rest-api#110

Merged
imbajin merged 31 commits intoapache:mainfrom
diya-he:main
Nov 16, 2024
Merged

feat(llm): support log_block in RAG platform & rest-api#110
imbajin merged 31 commits intoapache:mainfrom
diya-he:main

Conversation

@diya-he
Copy link
Copy Markdown
Contributor

@diya-he diya-he commented Nov 11, 2024

curl command for rolling logs in cmd:

curl -X POST "http://127.0.0.1:8001/logs" -H "Content-Type: application/json" \
-H "Authorization: Bearer 123456" \
-d "{\"log_token\": \"000000\", \"log_file\": \"llm-server.log\"}"

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 11, 2024
@github-actions github-actions Bot added the llm label Nov 11, 2024
@dosubot dosubot Bot added the enhancement New feature or request label Nov 11, 2024
Comment thread hugegraph-llm/src/hugegraph_llm/api/models/rag_requests.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/config/config_data.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/app.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/log_block.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/log_block.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/log_block.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/api/models/rag_requests.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/api/rag_api.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/api/rag_api.py Outdated
Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/log_block.py Outdated
@imbajin
Copy link
Copy Markdown
Member

imbajin commented Nov 13, 2024

merge it after #111 (need update the code)

@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 13, 2024
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Nov 14, 2024
Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/other_block.py
Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/admin_block.py Outdated
def read_llm_server_log():
try:
with open("logs/llm-server.log", "r") as f:
return f.read()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines = file.readlines()[-num_lines:] (maybe?)

Comment thread hugegraph-llm/src/hugegraph_llm/demo/rag_demo/admin_block.py
Copy link
Copy Markdown
Member

@imbajin imbajin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Nov 16, 2024
@imbajin imbajin changed the title support log output in RAG platform in ui and curl command feat(llm): support log_block in RAG platform & rest-api Nov 16, 2024
@imbajin imbajin merged commit 41412a6 into apache:main Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer llm size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants