面向開(kāi)發(fā)者的LLM入門課程-評(píng)估英文版提(2): 英文版提示 2.人工評(píng)估 import langchain langchain.debug = True #重新運(yùn)行與上面相同的示例,可以看到它開(kāi)始打印出更多……
哈嘍!伙伴們,我是小智,你們的AI向?qū)?。歡迎來(lái)到每日的AI學(xué)習(xí)時(shí)間。今天,我們將一起深入AI的奇妙世界,探索“面向開(kāi)發(fā)者的LLM入門課程-評(píng)估英文版提(2)”,并學(xué)會(huì)本篇文章中所講的全部知識(shí)點(diǎn)。還是那句話“不必遠(yuǎn)征未知,只需喚醒你的潛能!”跟著小智的步伐,我們終將學(xué)有所成,學(xué)以致用,并發(fā)現(xiàn)自身的更多可能性。話不多說(shuō),現(xiàn)在就讓我們開(kāi)始這場(chǎng)激發(fā)潛能的AI學(xué)習(xí)之旅吧。
面向開(kāi)發(fā)者的LLM入門課程-評(píng)估英文版提(2):
英文版提示
2.人工評(píng)估
import langchain
langchain.debug = True
#重新運(yùn)行與上面相同的示例,可以看到它開(kāi)始打印出更多的信息
qa.run(examples[0][“query”])
langchain.debug = False
[chain/start] [1:chain:RetrievalQA] Entering Chain run with input:
{
“query”: “Do the Cozy Comfort Pullover Set have side pockets?”
}
[chain/start] [1:chain:RetrievalQA > 3:chain:StuffDocumentsChain] Entering Chain
run with input:
[inputs]
[chain/start] [1:chain:RetrievalQA > 3:chain:StuffDocumentsChain >
4:chain:LLMChain] Entering Chain run with input:
{
“question”: “Do the Cozy Comfort Pullover Set have side pockets?”,
“context”: “: 10nname: Cozy Comfort Pullover Set, Stripendescription: Perfect
for lounging, this striped knit set lives up to its name. We used ultrasoft
fabric and an easy design that’s as comfortable at bedtime as it is when we have
to make a quick run out.nnSize & Fitn- Pants are Favorite Fit: Sits lower on
the waist.n- Relaxed Fit: Our most generous fit sits farthest from the
body.nnFabric & Caren- In the softest blend of 63% polyester, 35% rayon and 2%
spandex.nnAdditional Featuresn- Relaxed fit top with raglan sleeves and
rounded hem.n- Pull-on pants have a wide elastic waistband and drawstring, side
pockets and a modern slim leg.nnImported.<<<<>>>>>: 73nname: Cozy Cuddles Knit
Pullover Setndescription: Perfect for lounging, this knit set lives up to its
name. We used ultrasoft fabric and an easy design that’s as comfortable at
bedtime as it is when we have to make a quick run out. nnSize & Fit nPants are
Favorite Fit: Sits lower on the waist. nRelaxed Fit: Our most generous fit sits
farthest from the body. nnFabric & Care nIn the softest blend of 63%
polyester, 35% rayon and 2% spandex.nnAdditional Features nRelaxed fit top
with raglan sleeves and rounded hem. nPull-on pants have a wide elastic
waistband and drawstring, side pockets and a modern slim leg. nImported.
<<<<>>>>>: 151nname: Cozy Quilted Sweatshirtndescription: Our sweatshirt is an
instant classic with its great quilted texture and versatile weight that easily
transitions between seasons. With a traditional fit that is relaxed through the
chest, sleeve, and waist, this pullover is lightweight enough to be worn most
months of the year. The cotton blend fabric is super soft and comfortable, making
it the perfect casual layer. To make dressing easy, this sweatshirt also features
a snap placket and a heritage-inspired Mt. Katahdin logo patch. For care, machine
wash and dry. Imported.<<<<>>>>>: 265nname: Cozy Workout Vestndescription: For
serious warmth that won’t weigh you down, reach for this fleece-lined vest, which
provides you with layering options whether you’re inside or outdoors.nSize &
FitnRelaxed Fit. Falls at hip.nFabric & CarenSoft, textured fleece lining.
Nylon shell. Machine wash and dry. nAdditional Features nTwo handwarmer
pockets. Knit side panels stretch for a more flattering fit. Shell fabric is
treated to resist water and stains. Imported.”
}
[llm/start] [1:chain:RetrievalQA > 3:chain:StuffDocumentsChain > 4:chain:LLMChain
> 5:llm:ChatOpenAI] Entering LLM run with input:
{
“prompts”: [
“System: Use the following pieces of context to answer the users question.
nIf you don’t know the answer, just say that you don’t know, don’t try to make
up an answer.n—————-n: 10nname: Cozy Comfort Pullover Set,
Stripendescription: Perfect for lounging, this striped knit set lives up to its
name. We used ultrasoft fabric and an easy design that’s as comfortable at
bedtime as it is when we have to make a quick run out.nnSize & Fitn- Pants are
Favorite Fit: Sits lower on the waist.n- Relaxed Fit: Our most generous fit sits
farthest from the body.nnFabric & Caren- In the softest blend of 63%
polyester, 35% rayon and 2% spandex.nnAdditional Featuresn- Relaxed fit top
with raglan sleeves and rounded hem.n- Pull-on pants have a wide elastic
waistband and drawstring, side pockets and a modern slim leg.nnImported.
<<<<>>>>>: 73nname: Cozy Cuddles Knit Pullover Setndescription: Perfect for
lounging, this knit set lives up to its name. We used ultrasoft fabric and an
easy design that’s as comfortable at bedtime as it is when we have to make a
quick run out. nnSize & Fit nPants are Favorite Fit: Sits lower on the waist.
nRelaxed Fit: Our most generous fit sits farthest from the body. nnFabric &
Care nIn the softest blend of 63% polyester, 35% rayon and 2%
spandex.nnAdditional Features nRelaxed fit top with raglan sleeves and rounded
hem. nPull-on pants have a wide elastic waistband and drawstring, side pockets
and a modern slim leg. nImported.<<<<>>>>>: 151nname: Cozy Quilted
Sweatshirtndescription: Our sweatshirt is an instant classic with its great
quilted texture and versatile weight that easily transitions between seasons.
With a traditional fit that is relaxed through the chest, sleeve, and waist, this
pullover is lightweight enough to be worn most months of the year. The cotton
blend fabric is super soft and comfortable, making it the perfect casual layer.
To make dressing easy, this sweatshirt also features a snap placket and a
heritage-inspired Mt. Katahdin logo patch. For care, machine wash and dry.
Imported.<<<<>>>>>: 265nname: Cozy Workout Vestndescription: For serious warmth
that won’t weigh you down, reach for this fleece-lined vest, which provides you
with layering options whether you’re inside or outdoors.nSize & FitnRelaxed
Fit. Falls at hip.nFabric & CarenSoft, textured fleece lining. Nylon shell.
Machine wash and dry. nAdditional Features nTwo handwarmer pockets. Knit side
panels stretch for a more flattering fit. Shell fabric is treated to resist water
and stains. Imported.nHuman: Do the Cozy Comfort Pullover Set have side
pockets?”
]
}
[llm/end] [1:chain:RetrievalQA > 3:chain:StuffDocumentsChain > 4:chain:LLMChain >
5:llm:ChatOpenAI] [879.746ms] Exiting LLM run with output:
{
“generations”: [
[
{
“text”: “Yes, the Cozy Comfort Pullover Set does have side pockets.”,
“generation_info”: {
“finish_reason”: “stop”
},
“message”: {
“lc”: 1,
“type”: “constructor”,
“id”: [
“langchain”,
“schema”,
“messages”,
“AIMessage”
],
“kwargs”: {
“content”: “Yes, the Cozy Comfort Pullover Set does have side
pockets.”,
“additional_kwargs”: {}
}
}
}
]
],
“llm_output”: {
“token_usage”: {
“prompt_tokens”: 626,
“completion_tokens”: 14,
“total_tokens”: 640
},
“model_name”: “gpt-3.5-turbo”
},
“run”: null
}
[chain/end] [1:chain:RetrievalQA > 3:chain:StuffDocumentsChain >
4:chain:LLMChain] [880.5269999999999ms] Exiting Chain run with output:
{
“text”: “Yes, the Cozy Comfort Pullover Set does have side pockets.”
}
[chain/end] [1:chain:RetrievalQA > 3:chain:StuffDocumentsChain]
[881.4499999999999ms] Exiting Chain run with output:
{
“output_text”: “Yes, the Cozy Comfort Pullover Set does have side pockets.”
}
[chain/end] [1:chain:RetrievalQA] [1.21s] Exiting Chain run with output:
{
“result”: “Yes, the Cozy Comfort Pullover Set does have side pockets.”
}
嘿,伙伴們,今天我們的AI探索之旅已經(jīng)圓滿結(jié)束。關(guān)于“面向開(kāi)發(fā)者的LLM入門課程-評(píng)估英文版提(2)”的內(nèi)容已經(jīng)分享給大家了。感謝你們的陪伴,希望這次旅程讓你對(duì)AI能夠更了解、更喜歡。謹(jǐn)記,精準(zhǔn)提問(wèn)是解鎖AI潛能的鑰匙哦!如果有小伙伴想要了解學(xué)習(xí)更多的AI知識(shí),請(qǐng)關(guān)注我們的官網(wǎng)“AI智研社”,保證讓你收獲滿滿呦!

微信掃一掃
支付寶掃一掃