Lenovo LLMs Large Language Models Instructions
Document viewer
9 Pages · 140 KB · Lenovo official PDF
Manual overview & contents
Lenovo · 9 PagesOfficial 9-page Lenovo documentation (140 KB PDF). Key sections include Requirements, Process overview, 1. Define Scope, 2. Collect, Clean, and Chunk Text Documents, 3. Manually Create Examples.
Large language models (LLMs) can perform useful tasks such as question answering and following instructions to generate text. Context retrieval is a popular enhancement for LLM applications: a user gives an input, the application retrieves relevant context, and the user input, along with the context are passed to the LLM for informed output generation. Retrieval augmented generation (RAG) improves the accuracy, diversity, and specificity of LLM generated responses by retrieving relevant context and adding it to the prompt (Lewis et al., 2021). However, for enterprise applications, using RAG with an open source LLM may not suffice.
Sections inside this manual
Page numbers for quick lookup in the PDF- Requirementsp. 1
- Process overviewp. 2
- 1. Define Scopep. 2
- 2. Collect, Clean, and Chunk Text Documentsp. 2
- 3. Manually Create Examplesp. 3
- 5. Create a Positive RAG Datasetp. 5
- 6. Create a Negative RAG Datasetp. 6
- 7. Combine Positive and Negative RAG Datasetsp. 7
- Conclusionp. 7
- Authorp. 7
- Related product familiesp. 7
- Noticesp. 8
- Trademarksp. 9
Extracted manual text
Making LLMs Work for Enterprise Part 2: RAG Fine-
In many cases, plenty of company-specific data–for example, existing documents or webpages–is available to serve as context in a RAG application. But the questions used for fine-tuning should be the types of questions expected from the end users of the application, and the answers should demonstrate the level of detail, tone, length, and diversity with which the application should respond.
In this article, we will discuss the steps for creating a dataset for fine-tuning a LLM to be used in a RAG application that answers questions about a company-specific knowledge base. It is unlikely that hundreds or thousands of context-question-answer examples that align with the needs of the LLM application are readily available. However, using a small set of high-quality human-created examples, we can use a highperforming LLM to generate questions and answers that relate to the available context documents. This process will augment the dataset while maintaining the question-and-answer patterns of the original human-created examples. The size of the dataset can quickly scale to thousands of examples.
The deliverables created by following the steps in this article are:
Collection of cleaned document chunks relevant to scope 50 randomly selected document chunks, each with a manually created question-and-answer pair Several thousand LLM-generated (plus 20 manually created) document chunk-question-answer sets Combined dataset of positive and negative RAG question and answer examples
The high-level requirements are as follows: Hardware: Server with at least 1x A100 80GB
Making LLMs Work for Enterprise Part 2: RAG Fine-Tuning Dataset Creation
Frequently asked questions
What topics are covered in the Lenovo LLMs Large Language Models Instructions?
This 9-page manual covers: Making LLMs Work for Enterprise Part 2: RAG Fine-Tuning Dataset Creation Planning / Implementation, Requirements, Process overview, 1. Define Scope, 2. Collect, Clean, and Chunk Text Documents, 3. Manually Create Examples, 4. Generate a Large Q&A Dataset with Few-Shot Prompting, 5. Create a Positive RAG Dataset.
More manuals from Lenovo
View all →Lenovo 62F4 T75 Smart Large Format Display User Guide
View or download the Lenovo 62F4 T75 Smart Large Format Display User Guide (36-page PDF).
Lenovo 62F2-KATC-WW ThinkVision T65 Smart Large Format Display User Guide
View or download the Lenovo 62F2-KATC-WW ThinkVision T65 Smart Large Format Display User Guide (33-page PDF).
Lenovo 62F4-KATC-WW Think Vision Smart Large Format Display User Guide
View or download the Lenovo 62F4-KATC-WW Think Vision Smart Large Format Display User Guide (33-page PDF).
Lenovo 4XC0G88840 ThinkServer RAID 520i Adapter Owner’s Manual
View or download the Lenovo 4XC0G88840 ThinkServer RAID 520i Adapter Owner’s Manual (418-page PDF). Covers Chapter 1: Overview.
Lenovo ThinkServer RAID 720i Adapter Family User Guide
View or download the Lenovo ThinkServer RAID 720i Adapter Family User Guide (418-page PDF). Covers Chapter 1: Overview, Chapter 2: Introduction to RAID.
Lenovo ThinkStation P720 User Manual
View or download the Lenovo ThinkStation P720 User Manual (258-page PDF). Covers About this manual, Chapter 1. Read this first: Important safety information.