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

Update Chinese version #67

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open

Conversation

innovation64
Copy link
Contributor

@innovation64 innovation64 commented Mar 27, 2024

Update all those articles in Chinese version

  • rag_llamaindex_librarian
  • rag_with_HF_gemma_Mongodb
  • stable_diffusion_interpolation
  • tgi_messages_api_demo
  • prompt_tuning_peft
  • labelling_feedback_setfit
  • pipeline_notus_instructions_preferences_legal
  • semantic_cache_chroma_vector_database
  • llm_judge

@adeenayakup @MKhalusova

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@innovation64 innovation64 changed the title Update two articles Chinese version which are about RAG Update left articles Chinese version Mar 28, 2024
"name": "stdout",
"output_type": "stream",
"text": [
"Based on the context provided, there are two books available:\n",

Choose a reason for hiding this comment

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

根据提供的上下文,我们的图书馆里有两本可供阅读的书:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这部分是代码运行的输出,没办法直接更改

"text": [
"Based on the context provided, there are two books available:\n",
"\n",
"1. \"Pride and Prejudice\" by Jane Austen\n",

Choose a reason for hiding this comment

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

  1. 简·奥斯丁的《傲慢与偏见》

"Based on the context provided, there are two books available:\n",
"\n",
"1. \"Pride and Prejudice\" by Jane Austen\n",
"2. \"Les Misérables\" by Victor Hugo\n",

Choose a reason for hiding this comment

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

  1. 维克多·雨果的《悲惨世界》

"1. \"Pride and Prejudice\" by Jane Austen\n",
"2. \"Les Misérables\" by Victor Hugo\n",
"\n",
"The context used to derive this answer includes:\n",

Choose a reason for hiding this comment

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

提供答案的上下文包括:

"\n",
"The context used to derive this answer includes:\n",
"\n",
"* The file path for each book, which provides information about the location of the book files on the computer.\n",

Choose a reason for hiding this comment

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

每本书的文件路径,这说明了书籍文件在计算机上的具体位置;

Copy link

@adeenayakup adeenayakup left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you : )

@@ -4,28 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Agentic RAG: turbocharge your RAG with query reformulation and self-query! 🚀\n",
"_Authored by: [Aymeric Roucher](https://huggingface.co/m-ric)_\n",
"# 智能体 RAG:通过查询重写和自我查询来为你的 RAG 加速!🚀\n",

Choose a reason for hiding this comment

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

通过查询重构和自查询来增强你的RAG

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

"\n",
"Run the line below to install required dependencies:"
"所以,我们得用点高级的RAG技术!\n",
"- 不直接用用户的提问去搜索,我们自己编一个更接近想要找的资料的句子,就像 [HyDE](https://huggingface.co/papers/2212.10496) 那样\n",

Choose a reason for hiding this comment

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

不直接使用用户的提问去搜索,而是智能体自行制定一个更接近目标文档的参考句子。

"Run the line below to install required dependencies:"
"所以,我们得用点高级的RAG技术!\n",
"- 不直接用用户的提问去搜索,我们自己编一个更接近想要找的资料的句子,就像 [HyDE](https://huggingface.co/papers/2212.10496) 那样\n",
"- 如果需要,我们可以看看已经找到的信息,然后再去找一次,就像 [Self-Query](https://docs.llamaindex.ai/en/stable/examples/evaluation/RetryQuery/) 那样\n",

Choose a reason for hiding this comment

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

智能体能生成片段并在需要时重新检索

Copy link

@adeenayakup adeenayakup left a comment

Choose a reason for hiding this comment

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

Made a few minor adjustments,everything else looks great👍
Thank you for your contribution!

Copy link

@adeenayakup adeenayakup left a comment

Choose a reason for hiding this comment

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

Lgtm. Thanks👍

@innovation64 innovation64 changed the title Update left articles Chinese version Update Chinese version Jul 11, 2024
@merveenoyan
Copy link
Collaborator

@innovation64 can you resolve merge conflicts and we can merge?

@merveenoyan
Copy link
Collaborator

@innovation64 thanks a lot!

lastly, toctree needs to follow a format, for reference English toctree vs the one in this PR:

Screenshot 2024-08-29 at 22 37 34 Screenshot 2024-08-29 at 22 37 44

Causes errors with docbuilder:

yaml.parser.ParserError: while parsing a block mapping
  in "<unicode string>", line 1, column 1:
    title: 开源 AI 指南 (Cookbook)
    ^
expected <block end>, but found '-'
  in "<unicode string>", line 6, column 1:
    - title: LLM 系列

@merveenoyan
Copy link
Collaborator

@innovation64 rag_with_hf_and_milvus isn't in toctree, I think that might be why it's failing (though not sure)

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.

4 participants