Update with fp32 example
Browse files
README.md
CHANGED
@@ -18,7 +18,7 @@ npm i @huggingface/transformers
|
|
18 |
import { pipeline } from "@huggingface/transformers";
|
19 |
|
20 |
// Create a text generation pipeline
|
21 |
-
const generator = await pipeline("text-generation", "onnx-community/Pleias-Pico", { dtype: "
|
22 |
|
23 |
// Construct RAG prompt
|
24 |
const prompt = `
|
@@ -39,21 +39,22 @@ console.log(output[0].generated_text);
|
|
39 |
<summary>Example output</summary>
|
40 |
|
41 |
```
|
42 |
-
The user is asking about the reliability of Wikipedia's content
|
43 |
|
44 |
-
|
45 |
-
1. **ebea70a3502acfbd**: This reference provides a detailed analysis of the reliability of Wikipedia, including specific studies and criticisms.
|
46 |
-
2. **5f862e733d38288e**: This reference discusses the importance of transparency and the potential for future improvements in Wikipedia's content.
|
47 |
-
3. **354fa4908152b336**: This reference highlights the efforts of Wikipedia to strengthen its rules and the potential for future changes.
|
48 |
-
Wikipedia's reliability is a critical aspect of its content, and it is essential for maintaining the trust of users. According to a recent study, the reliability of Wikipedia is "the most reliable source of information" for the United States, with a high level of accuracy<ref name="ebea70a3502acfbd">"The most reliable source of information for the United States is Wikipedia, with a high level of accuracy."</ref>. This reliability is supported by the fact that "Wikipedia is the most reliable source of information for the United States"<ref name="ebea70a3502acfbd">"Wikipedia is the most reliable source of information for the United States."</ref>.
|
49 |
|
50 |
-
|
51 |
|
52 |
-
|
|
|
53 |
|
54 |
-
|
55 |
|
56 |
-
|
|
|
|
|
|
|
|
|
57 |
```
|
58 |
</details>
|
59 |
|
|
|
18 |
import { pipeline } from "@huggingface/transformers";
|
19 |
|
20 |
// Create a text generation pipeline
|
21 |
+
const generator = await pipeline("text-generation", "onnx-community/Pleias-Pico", { dtype: "fp32" });
|
22 |
|
23 |
// Construct RAG prompt
|
24 |
const prompt = `
|
|
|
39 |
<summary>Example output</summary>
|
40 |
|
41 |
```
|
42 |
+
The user is asking about the reliability of Wikipedia's content compared to other encyclopedias. The references provided include a variety of sources discussing Wikipedia's reliability, the impact of its structure, and the challenges faced by Wikipedia in maintaining its credibility.
|
43 |
|
44 |
+
**ebea70a3502acfbd** discusses the accuracy of Wikipedia's entries compared to other encyclopedias like Encyclopædia Britannica, noting that while some entries are accurate, others are not. It also highlights the issue of humanities subjects being overlooked in Wikipedia.
|
|
|
|
|
|
|
|
|
45 |
|
46 |
+
**5f862e733d38288e** addresses the lack of accountability and the potential for misinformation in Wikipedia, which can affect its credibility. It also mentions the importance of transparency and the need for Wikipedia to be open and verifiable.
|
47 |
|
48 |
+
**354fa4908152b336** provides context on the structure and content of Wikipedia, emphasizing its openness and the potential for abuse. It also mentions the legal and ethical concerns surrounding its content.
|
49 |
+
Wikipedia's reliability is a significant concern, as it is a widely recognized and trusted encyclopedia. However, its content can be subject to various forms of misinformation and human rights violations.
|
50 |
|
51 |
+
One major issue is the lack of accountability in Wikipedia. According to **5f862e733d38288e**, "Wikipedia may not have fared so well using a random sampling of articles or on humanities subjects" due to the lack of transparency and the potential for misinformation<ref name="5f862e733d38288e">"Wikipedia may not have fared so well using a random sampling of articles or on humanities subjects."</ref>. This suggests that while Wikipedia is a reliable source, it may not always provide accurate information about its content.
|
52 |
|
53 |
+
Another challenge is the potential for abuse. The structure of Wikipedia, as described in **354fa4908152b336**, includes provisions for paid editing and spamming, which can lead to misinformation and abuse<ref name="354fa4908152b336">"Beginning Monday [from the date of the article, June 16, 2014], changes in Wikipedia's terms of use will require anyone paid to edit articles to disclose that arrangement."</ref>. This highlights the need for Wikipedia to be open and verifiable, as it can help maintain its credibility.
|
54 |
+
|
55 |
+
Additionally, the structure of Wikipedia itself, as outlined in **ebea70a3502acfbd**, emphasizes the importance of transparency and the need for Wikipedia to be open and verifiable<ref name="ebea70a3502acfbd">"Wikipedia may not have fared so well using a random sampling of articles or on humanities subjects."</ref>. This underscores the importance of maintaining a clear and verifiable content structure to ensure that Wikipedia remains a reliable source.
|
56 |
+
|
57 |
+
In summary, while Wikipedia is a reliable encyclopedia, its content can be subject to misinformation and human rights violations. The lack of transparency and the potential for abuse are significant concerns. Ensuring that Wikipedia remains open and verifiable is crucial for maintaining its credibility and ensuring that its content remains trustworthy.
|
58 |
```
|
59 |
</details>
|
60 |
|