sahil2801 commited on
Commit
871c929
1 Parent(s): e20ebc2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -12
README.md CHANGED
@@ -9,16 +9,13 @@ tags:
9
  ---
10
  # Llama-3-8B-RAG-v1
11
 
12
- This model is a fine-tuned version of Llama-3-8B for Retrieval-Augmented Generation (RAG) tasks.
13
 
14
  ## Model Details
15
 
16
- * **Developed by:** GlaiveAI
17
  * **Model type:** Llama-3 finetuned for RAG tasks
18
 
19
- ## Uses
20
-
21
- This model is designed for RAG tasks, where it can answer questions based on provided documents.
22
 
23
  ## How to Get Started with the Model
24
 
@@ -37,13 +34,13 @@ user_query = """Document:0
37
 
38
  Title: Financial Compliance and Company Statements
39
 
40
- Text: [Document text...]
41
 
42
  Document:1
43
 
44
  Title: Certification of Financial Reports by CEO of Black Knight, Inc.
45
 
46
- Text: [Document text...]
47
 
48
  Answer Mode: Grounded
49
 
@@ -75,7 +72,7 @@ print(output[0]['generated_text'])
75
 
76
  ## Output of above code block
77
  ```
78
- CopyCited Documents: 1
79
  Answer: <co:1>The CEO of Black Knight, Inc., Anthony M. Jabbour, ensures compliance with the Securities Exchange Act of 1934 by certifying that the periodic financial report and financial statements comply fully with the requirements of Section 13(a) or 15(d) of the Act. This certification confirms that the information in the reports fairly presents, in all material respects, the financial condition and results of operations of Black Knight, Inc.</co> This certification is crucial as it assures stakeholders of the reliability of the financial statements provided by the company, thereby maintaining investor confidence and adherence to legal financial reporting standards.
80
  In this output:
81
 
@@ -85,11 +82,19 @@ The answer explains how the CEO ensures compliance and the implications of the c
85
  The citation is marked with <co:1></co> tags, indicating that this information comes directly from Document 1.
86
  ```
87
 
88
- ## Code Explanation
89
- The code is split into two main parts:
 
 
 
 
 
 
 
 
90
 
91
- 1. Chat Template Preparation: We create a chat list with a system message and a user query. The apply_chat_template method is used to format this chat into a prompt suitable for the model.
92
- 2. Pipeline Setup and Generation: We set up a text-generation pipeline with our model and tokenizer. The prepared prompt is passed to the pipeline to generate a response.
93
 
94
 
95
 
 
9
  ---
10
  # Llama-3-8B-RAG-v1
11
 
12
+ This model is a fine-tuned version of Llama-3-8B for Retrieval-Augmented Generation (RAG) tasks on the Glaive-RAG-v1 dataset.
13
 
14
  ## Model Details
15
 
16
+ * **Developed by:** (Glaive)[https://glaive.ai]
17
  * **Model type:** Llama-3 finetuned for RAG tasks
18
 
 
 
 
19
 
20
  ## How to Get Started with the Model
21
 
 
34
 
35
  Title: Financial Compliance and Company Statements
36
 
37
+ Text: This document provides a detailed overview of the financial compliance measures and statements issued by corporations. It discusses various aspects of financial reporting, the importance of accurate financial disclosures, and the role of chief executive officers in certifying financial documents. The document elaborates on the legal frameworks that govern corporate financial disclosures, including the Securities Exchange Act of 1934, which mandates that public companies must provide periodic reports detailing their financial status. These reports are crucial for investors, regulators, and other stakeholders who rely on them to make informed decisions. The document also highlights the penalties for non-compliance with financial reporting requirements, which can include fines and criminal charges for executives who misreport financial information.
38
 
39
  Document:1
40
 
41
  Title: Certification of Financial Reports by CEO of Black Knight, Inc.
42
 
43
+ Text: Pursuant to 18 U.S.C. §1350, the Chief Executive Officer of Black Knight, Inc., a corporation registered in Delaware, has officially certified the periodic financial report containing the company's financial statements. The certification confirms that these reports comply fully with the requirements of Section 13(a) or 15(d) of the Securities Exchange Act of 1934. The CEO, Anthony M. Jabbour, asserts that the information contained within these reports fairly presents, in all material respects, the financial condition and results of operations of Black Knight, Inc. The certification is part of the official documents filed with the Securities and Exchange Commission and serves as a testament to the accuracy and fairness of the financial disclosures made by the company. This certification is crucial as it assures stakeholders of the reliability of the financial statements provided by Black Knight, Inc.
44
 
45
  Answer Mode: Grounded
46
 
 
72
 
73
  ## Output of above code block
74
  ```
75
+ Cited Documents: 1
76
  Answer: <co:1>The CEO of Black Knight, Inc., Anthony M. Jabbour, ensures compliance with the Securities Exchange Act of 1934 by certifying that the periodic financial report and financial statements comply fully with the requirements of Section 13(a) or 15(d) of the Act. This certification confirms that the information in the reports fairly presents, in all material respects, the financial condition and results of operations of Black Knight, Inc.</co> This certification is crucial as it assures stakeholders of the reliability of the financial statements provided by the company, thereby maintaining investor confidence and adherence to legal financial reporting standards.
77
  In this output:
78
 
 
82
  The citation is marked with <co:1></co> tags, indicating that this information comes directly from Document 1.
83
  ```
84
 
85
+ ## Answer mode and citations
86
+
87
+ The model can be instructed to answer only using grounded information from the documents, or to combine it's internal knowledge as well by using Answer Mode: Grounded/Mixed in the user prompt.
88
+
89
+ Citations are generated at the beginning of each answer, and also present within the text in <co: doc_id> </co> blocks.
90
+
91
+
92
+ ## Future work
93
+
94
+ We are working on the following improvements for the next version of the dataset:
95
 
96
+ - Multi turn data
97
+ - Diverse document sources
98
 
99
 
100