Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support llm infer param: temperature #52

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

wwxxzz
Copy link
Collaborator

@wwxxzz wwxxzz commented Jun 6, 2024

No description provided.

@wwxxzz wwxxzz requested review from moria97 and Ceceliachenen June 6, 2024 03:08
Copy link

github-actions bot commented Jun 6, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
2620 1586 61% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/pai_rag/app/api/models.py 100% 🟢
src/pai_rag/modules/llm/llm_module.py 69% 🟢
TOTAL 85% 🟢

updated for commit: 8e3e952 by action🐍

for i, doc in enumerate(response["docs"])
]
)
formatted_text = "<tr><th>Document</th><th>Score</th><th>Text</th></tr>\n"
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果text本身是html或者带转义字符如之类的会出问题吗?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已改:加了safe_html_content的转换,可以保证HTML和markdown格式的内容不会乱码。

@wwxxzz wwxxzz merged commit 4bb4ce8 into feature Jun 6, 2024
1 check passed
@moria97 moria97 deleted the personal/xiaowen/support_llm_infer_params branch June 7, 2024 12:01
moria97 pushed a commit that referenced this pull request Jun 14, 2024
* support llm infer param: temperature

* modify style of retrieval chunks

* support safe_html_content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants