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

[Bug] ERNIE经常没回答完就结束了,请问怎么提取每个回答的ID? #4533

Open
Ray1735 opened this issue Oct 29, 2024 · 10 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Ray1735
Copy link

Ray1735 commented Oct 29, 2024

📦 部署环境

Official Preview

📌 软件版本

ERNIE 4.0 Turbo 8K和ERNIE 4.0 8K

💻 系统环境

Windows

🌐 浏览器

Firefox

🐛 问题描述

ERNIE 4.0 Turbo 8K和ERNIE 4.0 8K,经常没回答完就结束了,字数上也远没有达到上限。
我找官方工程师帮我查看,他们要求提供每个回答的会话ID(例如as-jwq49q2a8a),请问这个会话ID怎么提取啊?
1730189794260

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@Ray1735 Ray1735 added the 🐛 Bug Something isn't working | 缺陷 label Oct 29, 2024
@lobehubbot
Copy link
Member

👀 @Ray1735

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Official Preview

📌 Software version

ERNIE 4.0 Turbo 8K and ERNIE 4.0 8K

💻 System environment

Windows

🌐 Browser

Firefox

🐛 Problem description

ERNIE 4.0 Turbo 8K and ERNIE 4.0 8K often ended before answering, and the word count was far from reaching the upper limit.
I asked the official engineers to help me check, and they asked for the session ID of each answer (for example, as-jwq49q2a8a). How can I extract this session ID?
1730189794260

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

Copy link

dosubot bot commented Oct 29, 2024

在代码库中,消息对象包含一个 sessionId 字段,该字段与用户和助手的消息相关联。您可以在 src/server/services/dataImporter/__tests__/fixtures/messages.json 文件中找到示例,其中每条消息都有一个 sessionId,用于跟踪会话及其对应的响应。例如:

{
  "role": "user",
  "content": "do you know ChatGPT?",
  "sessionId": "inbox",
  "id": "C5CiFuWL"
},
{
  "role": "assistant",
  "content": "...",
  "parentId": "C5CiFuWL",
  "sessionId": "inbox",
  "id": "GNfOJrZW"
}

这种模式表明,sessionId 用于跟踪对话和相应的响应。您可以通过查看这些数据结构来提取每个回答的会话ID [1]

To continue talking to Dosu, mention @dosu.

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


In the code base, message objects contain a sessionId field, which is associated with messages for users and assistants. You can find an example in the src/server/services/dataImporter/__tests__/fixtures/messages.json file, where each message has a sessionId that is used to track the session and its corresponding response. For example:

{
  "role": "user",
  "content": "do you know ChatGPT?",
  "sessionId": "inbox",
  "id": "C5CiFuWL"
},
{
  "role": "assistant",
  "content": "...",
  "parentId": "C5CiFuWL",
  "sessionId": "inbox",
  "id": "GNfOJrZW"
}

This pattern shows that the sessionId is used to track conversations and corresponding responses. You can extract the session ID for each answer by looking at these data structures [[1]](https://github.com/lobehub/lobe-chat/blob/main/src/server/services/dataImporter/ tests/fixtures/messages.json).

To continue talking to Dosu, mention @dosu.

Copy link

dosubot bot commented Oct 29, 2024

在代码库中,消息对象包含一个 sessionId 字段,该字段与用户和助手的消息相关联。您可以在 src/server/services/dataImporter/__tests__/fixtures/messages.json 文件中找到示例,其中每条消息都有一个 sessionId,用于跟踪会话及其对应的响应。例如:

{
  "role": "user",
  "content": "do you know ChatGPT?",
  "sessionId": "inbox",
  "id": "C5CiFuWL"
},
{
  "role": "assistant",
  "content": "...",
  "parentId": "C5CiFuWL",
  "sessionId": "inbox",
  "id": "GNfOJrZW"
}

这种模式表明,sessionId 用于跟踪对话和相应的响应。您可以通过查看这些数据结构来提取每个回答的会话ID [1]

To continue talking to Dosu, mention @dosu.

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


In the code base, message objects contain a sessionId field, which is associated with messages for users and assistants. You can find an example in the src/server/services/dataImporter/__tests__/fixtures/messages.json file, where each message has a sessionId that is used to track the session and its corresponding response. For example:

{
  "role": "user",
  "content": "do you know ChatGPT?",
  "sessionId": "inbox",
  "id": "C5CiFuWL"
},
{
  "role": "assistant",
  "content": "...",
  "parentId": "C5CiFuWL",
  "sessionId": "inbox",
  "id": "GNfOJrZW"
}

This pattern shows that the sessionId is used to track conversations and corresponding responses. You can extract the session ID for each answer by looking at these data structures [[1]](https://github.com/lobehub/lobe-chat/blob/main/src/server/services/dataImporter/ tests/fixtures/messages.json).

To continue talking to Dosu, mention @dosu.

@Ray1735
Copy link
Author

Ray1735 commented Oct 29, 2024

我使用的是chat-preview.lobehub.com,请问怎么获取你说的这个文件 src/server/services/dataImporter/tests/fixtures/messages.json

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I am using chat-preview.lobehub.com. How can I obtain the file you mentioned, src/server/services/dataImporter/tests/fixtures/messages.json?

@arvinxx
Copy link
Contributor

arvinxx commented Oct 29, 2024

@Ray1735 这个目前暂时没有,我后续想想可以怎么添加

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@Ray1735 This is not currently available. I will think about how to add it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants