Chapter 45
5.自动合并检索 Auto merging Retrieval
第五章 自动合并检索
在本课程中,我们将探索一种高级的检索聚合(RAG)技术——自动合并检索。这种方法解决了使用传统RAG时遇到的一个关键问题:当检索信息块以填充语言模型(LLM)上下文时,如果这些块过于碎片化,将会影响上下文的连贯性,特别是当这些块的大小较小时。为了克服这一挑战,我们将采用一种自动合并启发式方法,该方法通过将较小的信息块合并到更大的父块中,从而保证了上下文的连贯性。接下来,我们将详细介绍如何实现这一技术,并通过实际案例来演示其应用。
首先,我们需要准备环境和导入必要的库。请注意,为了避免不必要的警告信息干扰我们的操作,我们将使用warnings库来忽略它们。
import warnings
warnings.filterwarnings('ignore')接下来,我们将导入一些工具函数,设置OpenAI的API密钥,并准备我们的文档。这些文档将作为我们的检索源。
import utils
import os
import openai
# 通过utils获取OpenAI API密钥并设置
openai.api_key = utils.get_openai_api_key()
# 或者这里填入你的OpenAI API密钥
# openai.api_key = ""
# 或者自定义API密钥和API基础地址,可适用第三方API服务
# openai.api_key = "sk- "
# openai.api_base = " "Output
✅ In Answer Relevance, input prompt will be set to __record__.main_input or `Select.RecordInput` . ✅ In Answer Relevance, input response will be set to __record__.main_output or `Select.RecordOutput` . ✅ In Context Relevance, input prompt will be set to __record__.main_input or `Select.RecordInput` . ✅ In Context Relevance, input response will be set to __record__.app.query.rets.source_nodes[:].node.text . ✅ In Groundedness, input source will be set to __record__.app.query.rets.source_nodes[:].node.text . ✅ In Groundedness, input statement will be set to __record__.main_output or `Select.RecordOutput` .
我们将使用 llama_index 库来读取和处理文档。在这个例子中,我们将加载一个PDF文件,但鼓励大家尝试使用自己的文档。
from llama_index import SimpleDirectoryReader
documents = SimpleDirectoryReader(
input_files=["./data/人工智能.pdf"]
).load_data()documents_en = SimpleDirectoryReader(
input_files=["./data/eBook-How-to-Build-a-Career-in-AI.pdf"]
).load_data()为了验证我们的文档已经被正确加载,让我们打印出文档的类型、数量以及第一个文档的内容。
print(type(documents), "\n")
print(len(documents), "\n")
print(type(documents[0]))
print(documents[0])Output
<class 'list'> 7 <class 'llama_index.schema.Document'> Doc ID: 35bf3256-2c52-4995-ae3b-311956872365 Text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 2/13“⼈⼯智能”的各地常⽤名称 中国⼤陆⼈⼯智能 台湾⼈⼯智慧 港澳⼈⼯智能 新⻢⼈⼯智能、⼈⼯智慧 ⽇韩⼈⼯知能 越南智慧⼈造 [展开] [展开] [展开] [展开] [展开] [展开]⼈⼯智能系列内容 主要⽬标 实现⽅式 ⼈⼯智能哲学 历史 技术 术语⼈⼯智能(英语:artificial intelligence ,缩写为 AI)亦称机器智能,指由⼈制造出来的机器所表现出来的智能。通常⼈⼯ 智能是指⽤普通计算机程序来呈现⼈类智能的技术。该词也指出研究这样的智能系统是否能够实现,以及如何实现。同 时,通过 医学 、神经科学 、机器⼈学 及...
print(type(documents_en), "\n")
print(len(documents_en), "\n")
print(type(documents_en[0]))
print(documents_en[0])Output
<class 'list'> 41 <class 'llama_index.schema.Document'> Doc ID: ab54b5ce-57c8-4187-91c4-de8c3d44cf4e Text: PAGE 1Founder, DeepLearning.AICollected Insights from Andrew Ng How to Build Your Career in AIA Simple Guide
一、自动合并检索的设置
我们将所有文档合并成一个大的文档对象,以便进行自动合并检索。
from llama_index import Document
# 将所有文档文本合并成一个大文档
document = Document(text="\n\n".join([doc.text for doc in documents]))document_en = Document(text="\n\n".join([doc.text for doc in documents_en]))# 将中文标点符号替换成英文标点符号,方便后续处理
# 如果是英文文档,可以跳过这一步
# 不处理的话,会导致无法正确切分中文句子,会影响后续sentence_window的大小,导致输入长度大于gpt-3.5-turbo的最大限制
document.text=document.text.replace('。','. ')
document.text=document.text.replace('!','! ')
document.text=document.text.replace('?','? ')现在,我们将创建一个层次结构节点解析器。这个解析器将帮助我们根据文档内容创建一个层次结构,以便于后续的自动合并操作。
from llama_index.node_parser import HierarchicalNodeParser
# 使用默认设置创建层次结构节点解析器
node_parser = HierarchicalNodeParser.from_defaults(
chunk_sizes=[2048, 512, 128]
)通过节点解析器,我们得到了文档中的所有节点。
# 从文档中获取节点
nodes = node_parser.get_nodes_from_documents([document])nodes_en = node_parser.get_nodes_from_documents([document_en])为了展示如何具体操作,我们将取出一些叶节点并查看它们的内容。叶节点是层次结构中最小的块,它们将直接参与到后续的合并过程中。
from llama_index.node_parser import get_leaf_nodes
# 获取叶节点并打印其中一个的文本作为示例
leaf_nodes = get_leaf_nodes(nodes)
print(leaf_nodes[30].text)Output
⼈⼯智能⼯具 与司法部门的⼈类法官相辅相成,提供客观、⼀致的风险评估[13].
leaf_nodes_en = get_leaf_nodes(nodes_en)
print(leaf_nodes_en[30].text)Output
But this became less important as numerical linear algebra libraries matured. Deep learning is still an emerging technology, so when you train a neural network and the optimization algorithm struggles to converge, understanding the math behind gradient descent, momentum, and the Adam optimization algorithm will help you make better decisions. Similarly, if your neural network does something funny — say, it makes bad predictions on images of a certain resolution, but not others — understanding the math behind neural network architectures puts you in a better position to figure out what to do. Of course, I also encourage learning driven by curiosity.
我们也可以查看这些叶节点的父节点。父节点包含了它的所有子节点的内容,这对于我们理解自动合并的过程非常重要。
# 根据ID获取节点,并打印一个叶节点的父节点文本作为示例
nodes_by_id = {node.node_id: node for node in nodes}
parent_node = nodes_by_id[leaf_nodes[30].parent_node.node_id]
print(parent_node.text)Output
⼈⼯智能为地⽅政府服务带来技术突破. ⼈⼯智能代理协助城市规划者基于⽬标导向的蒙特卡罗树搜索进⾏场景规划. ⽬标推理⼈⼯智能代理提供最佳的⼟ 地利⽤解决⽅案,帮助我们制定民主的城市⼟地利⽤规划. ⼈⼯智能利⽤在线数据来监控和修改环境威胁政策. 在2019 年⽔危机期间,潜在狄利克雷分配⽅ 法确定了Twitter (X) 中讨论最多的主题,这是⼀种朴素的推⽂分类⽅法,对⼲旱的影响和原因、政府响应和潜在解决⽅案等主题进⾏了分类. ⼈⼯智能⼯具 与司法部门的⼈类法官相辅相成,提供客观、⼀致的风险评估[13].
nodes_by_id_en = {node.node_id: node for node in nodes_en}
parent_node_en = nodes_by_id_en[leaf_nodes_en[30].parent_node.node_id]
print(parent_node_en.text)Output
PAGE 12Should You Learn Math to Get a Job in AI? CHAPTER 3 LEARNING PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? It’s always nice to know more math! But there’s so much to learn that, realistically, it’s necessary to prioritize. Here’s how you might go about strengthening your math background. To figure out what’s important to know, I find it useful to ask what you need to know to make the decisions required for the work you want to do. At DeepLearning.AI, we frequently ask, “What does someone need to know to accomplish their goals?” The goal might be building a machine learning model, architecting a system, or passing a job interview. Understanding the math behind algorithms you use is often helpful, since it enables you to debug them. But the depth of knowledge that’s useful changes over time. As machine learning techniques mature and become more reliable and turnkey, they require less debugging, and a shallower understanding of the math involved may be sufficient to make them work. For instance, in an earlier era of machine learning, linear algebra libraries for solving linear systems of equations (for linear regression) were immature. I had to understand how these libraries worked so I could choose among different libraries and avoid numerical roundoff pitfalls. But this became less important as numerical linear algebra libraries matured. Deep learning is still an emerging technology, so when you train a neural network and the optimization algorithm struggles to converge, understanding the math behind gradient descent, momentum, and the Adam optimization algorithm will help you make better decisions. Similarly, if your neural network does something funny — say, it makes bad predictions on images of a certain resolution, but not others — understanding the math behind neural network architectures puts you in a better position to figure out what to do. Of course, I also encourage learning driven by curiosity. If something interests you, go ahead and learn it regardless of how useful it might turn out to be! Maybe this will lead to a creative spark or technical breakthrough.How much math do you need to know to be a machine learning engineer?
1.1、构建索引
我们将构建索引并定义检索器,以便运行查询引擎并评估自动合并检索的效果。
继续构建我们的自动合并检索系统,我们需要使用 OpenAI 的语言模型和一些自定义组件来构建索引,这些组件将支持我们的自动合并逻辑。
首先,我们将初始化一个 OpenAI 的语言模型,这里我们选择使用 GPT-3.5 Turbo ,这是一个强大的模型,适用于各种NLP任务。
from llama_index.llms import OpenAI
# 使用OpenAI的GPT-3.5 Turbo模型
llm = OpenAI(model="gpt-3.5-turbo", temperature=0.1)接下来,我们将创建一个服务上下文对象。这个对象将包含我们所需的所有服务,例如嵌入模型和节点解析器,以便我们的系统能够正确地执行自动合并检索。
from llama_index import ServiceContext
# 创建服务上下文,包括LLM模型和节点解析器
auto_merging_context = ServiceContext.from_defaults(
llm=llm,
embed_model="local:BAAI/bge-small-zh-v1.5",
node_parser=node_parser,
)# 英文 embeding 模型
auto_merging_context_en = ServiceContext.from_defaults(
llm=llm,
embed_model="local:BAAI/bge-small-en-v1.5",
node_parser=node_parser,
)现在,我们需要将我们的文档节点存储在一个索引中。这个索引将支持快速检索操作,并允许我们根据需要动态合并文档节点。
from llama_index import VectorStoreIndex, StorageContext
# 创建存储上下文并添加文档节点
storage_context = StorageContext.from_defaults()
storage_context.docstore.add_documents(nodes)
# 创建自动合并索引
automerging_index = VectorStoreIndex(
leaf_nodes, storage_context=storage_context, service_context=auto_merging_context
)
# 持久化索引以便未来使用
automerging_index.storage_context.persist(persist_dir="./merging_index")# 创建存储上下文并添加文档节点
storage_context_en = StorageContext.from_defaults()
storage_context_en.docstore.add_documents(nodes_en)
# 创建自动合并索引
automerging_index_en = VectorStoreIndex(
leaf_nodes_en, storage_context=storage_context_en, service_context=auto_merging_context_en
)
# 持久化索引以便未来使用
automerging_index_en.storage_context.persist(persist_dir="./merging_index_en")为了确保我们的系统能够在需要时重新加载索引,我们还提供了一个可选的代码块,用于检查索引文件是否存在,并根据需要加载或重新构建它。
# 可选代码块:检查索引文件是否存在,如果不存在则重建
import os
from llama_index import VectorStoreIndex, StorageContext, load_index_from_storage
from llama_index import load_index_from_storage
if not os.path.exists("./merging_index"):
storage_context = StorageContext.from_defaults()
storage_context.docstore.add_documents(nodes)
automerging_index = VectorStoreIndex(
leaf_nodes,
storage_context=storage_context,
service_context=auto_merging_context
)
automerging_index.storage_context.persist(persist_dir="./merging_index")
else:
automerging_index = load_index_from_storage(
StorageContext.from_defaults(persist_dir="./merging_index"),
service_context=auto_merging_context
)if not os.path.exists("./merging_index_en"):
storage_context_en = StorageContext.from_defaults()
storage_context_en.docstore.add_documents(nodes_en)
automerging_index_en = VectorStoreIndex(
leaf_nodes_en,
storage_context=storage_context_en,
service_context=auto_merging_context_en
)
automerging_index_en.storage_context_en.persist(persist_dir="./merging_index_en")
else:
automerging_index_en = load_index_from_storage(
StorageContext.from_defaults(persist_dir="./merging_index_en"),
service_context=auto_merging_context_en
)1.2、定义检索器并运行查询引擎
接下来,我们将定义检索器并运行查询引擎。这个过程中,我们将设置一个自动合并检索器,这个检索器将控制文档节点的合并逻辑,以确保检索到的上下文是连贯的。
from llama_index.indices.postprocessor import SentenceTransformerRerank
from llama_index.retrievers import AutoMergingRetriever
from llama_index.query_engine import RetrieverQueryEngine
# 将自动合并索引转换为检索器
automerging_retriever = automerging_index.as_retriever(
similarity_top_k=12
)
# 定义自动合并检索器
retriever = AutoMergingRetriever(
automerging_retriever,
automerging_index.storage_context,
verbose=True
)
# 定义重新排名模块
rerank = SentenceTransformerRerank(top_n=6, model="BAAI/bge-reranker-base")
# 创建自动合并检索查询引擎
auto_merging_engine = RetrieverQueryEngine.from_args(
automerging_retriever, node_postprocessors=[rerank]
)# 将自动合并索引转换为检索器
automerging_retriever_en = automerging_index_en.as_retriever(
similarity_top_k=12
)
# 定义自动合并检索器
retriever_en = AutoMergingRetriever(
automerging_retriever_en,
automerging_index_en.storage_context,
verbose=True
)
# 定义重新排名模块
rerank_en = SentenceTransformerRerank(top_n=6, model="BAAI/bge-reranker-base")
# 创建自动合并检索查询引擎
auto_merging_engine_en = RetrieverQueryEngine.from_args(
automerging_retriever_en, node_postprocessors=[rerank_en]
)为了测试我们的自动合并检索系统,我们将使用一个示例查询:“AI对人类的威胁有哪些?”并展示检索到的响应。
# 使用查询引擎执行查询
auto_merging_response = auto_merging_engine.query(
"AI对人类的威胁有哪些?"
)# 使用查询引擎执行查询
auto_merging_response_en = auto_merging_engine_en.query(
"What is the importance of networking in AI?"
)我们可以使用提供的工具函数来美观地展示检索到的响应。
from llama_index.response.notebook_utils import display_response
# 显示查询响应
display_response(auto_merging_response)Output
<IPython.core.display.Markdown object>
display_response(auto_merging_response_en)Output
<IPython.core.display.Markdown object>
二、整合所有步骤
我们将整合上述所有步骤,并通过 TruLens 对我们的自动合并检索系统进行评估,以验证其性能。
为了将自动合并检索的各个部分整合在一起并进行评估,我们将定义两个高级函数:build_automerging_index 和 get_automerging_query_engine 。这些函数将帮助我们构建索引并初始化查询引擎,使我们能够以更简洁的方式测试和评估不同的配置。
首先,我们定义 build_automerging_index 函数,该函数负责构建自动合并索引。这个函数将接受文档、语言模型、嵌入模型和保存目录作为参数,并构建一个包含所有文档节点的索引。
接下来,我们定义 get_automerging_query_engine 函数,该函数负责从自动合并索引中创建查询引擎。它设置了检索器,使之能够根据相似性的 top K 值进行检索,并应用重新排序逻辑来优化检索结果。
import os
from llama_index import (
ServiceContext,
StorageContext,
VectorStoreIndex,
load_index_from_storage,
)
from llama_index.node_parser import HierarchicalNodeParser
from llama_index.node_parser import get_leaf_nodes
from llama_index import StorageContext, load_index_from_storage
from llama_index.retrievers import AutoMergingRetriever
from llama_index.indices.postprocessor import SentenceTransformerRerank
from llama_index.query_engine import RetrieverQueryEngine
# 定义构建自动合并索引的函数
def build_automerging_index(
documents,
llm,
embed_model="local:BAAI/bge-small-zh-v1.5",
save_dir="merging_index",
chunk_sizes=None,
):
chunk_sizes = chunk_sizes or [2048, 512, 128]
node_parser = HierarchicalNodeParser.from_defaults(chunk_sizes=chunk_sizes)
nodes = node_parser.get_nodes_from_documents(documents)
leaf_nodes = get_leaf_nodes(nodes)
merging_context = ServiceContext.from_defaults(
llm=llm,
embed_model=embed_model,
)
storage_context = StorageContext.from_defaults()
storage_context.docstore.add_documents(nodes)
if not os.path.exists(save_dir):
automerging_index = VectorStoreIndex(
leaf_nodes, storage_context=storage_context, service_context=merging_context
)
automerging_index.storage_context.persist(persist_dir=save_dir)
else:
automerging_index = load_index_from_storage(
StorageContext.from_defaults(persist_dir=save_dir),
service_context=merging_context,
)
return automerging_index
# 定义获取自动合并查询引擎的函数
def get_automerging_query_engine(
automerging_index,
similarity_top_k=12,
rerank_top_n=6,
):
base_retriever = automerging_index.as_retriever(similarity_top_k=similarity_top_k)
retriever = AutoMergingRetriever(
base_retriever, automerging_index.storage_context, verbose=True
)
rerank = SentenceTransformerRerank(
top_n=rerank_top_n, model="BAAI/bge-reranker-base"
)
auto_merging_engine = RetrieverQueryEngine.from_args(
retriever, node_postprocessors=[rerank]
)
return auto_merging_engine使用这两个函数,我们可以方便地构建索引和查询引擎,并通过不同的参数配置来测试自动合并检索的效果。下面是如何使用这些函数的示例:
from llama_index.llms import OpenAI
# 构建自动合并索引
index = build_automerging_index(
[document],
llm=OpenAI(model="gpt-3.5-turbo", temperature=0.1),
save_dir="./merging_index",
)index_en = build_automerging_index(
[document_en],
llm=OpenAI(model="gpt-3.5-turbo", temperature=0.1),
save_dir="./merging_index_en",
)# 获取自动合并查询引擎
query_engine = get_automerging_query_engine(index, similarity_top_k=6)query_engine_en = get_automerging_query_engine(index_en, similarity_top_k=6)三、TruLens评估
在构建了自动合并索引和查询引擎后,我们将使用 TruLens 来评估自动合并检索器的性能。 TruLens 是一个用于评估 AI 模型的工具,可以提供详细的性能指标。我们将首先重置 TruLens 数据库,然后进行评估。
from trulens_eval import Tru
# 重置TruLens数据库
Tru().reset_database()Output
🦑 Tru initialized with db url sqlite:///default.sqlite . 🛑 Secret keys may be written to the database. See the `database_redact_keys` option of `Tru` to prevent this.
我们将分别评估两层和三层自动合并结构的性能,并使用 TruLens 来记录和展示评估结果。这将帮助我们理解不同层次结构配置对性能的影响,并为我们提供优化自动合并检索策略的洞见。
在进行 TruLens 评估之前,我们需要为两种不同的层次结构设置自动合并索引和查询引擎。这两种结构分别是两层结构和三层结构。通过比较这两种结构的性能,我们可以更好地理解层次结构深度对自动合并检索效果的影响。
3.1、两层结构的索引构建
首先,我们将构建一个只有两层的自动合并索引。这种结构简化了创建索引的过程,并减少了检索步骤中所需的工作量。
# 构建具有两层结构的自动合并索引
auto_merging_index_0 = build_automerging_index(
documents,
llm=OpenAI(model="gpt-3.5-turbo", temperature=0.1),
embed_model="local:BAAI/bge-small-zh-v1.5",
save_dir="merging_index_0",
chunk_sizes=[2048,512],
)auto_merging_index_0_en = build_automerging_index(
documents_en,
llm=OpenAI(model="gpt-3.5-turbo", temperature=0.1),
embed_model="local:BAAI/bge-small-en-v1.5",
save_dir="merging_index_0_en",
chunk_sizes=[2048,512],
)接着,我们为这个两层结构的自动合并索引设置查询引擎,并保持与之前相同的 top K 和重新排名步骤。
# 获取两层结构的自动合并查询引擎
auto_merging_engine_0 = get_automerging_query_engine(
auto_merging_index_0,
similarity_top_k=12,
rerank_top_n=6,
)auto_merging_engine_0_en = get_automerging_query_engine(
auto_merging_index_0_en,
similarity_top_k=12,
rerank_top_n=6,
)为了进行 TruLens 评估,我们需要定义一个 TruLens 录音器,它将记录查询引擎的响应和评估结果。
from utils import get_prebuilt_trulens_recorder
# 使用TruLens记录器准备评估
tru_recorder = get_prebuilt_trulens_recorder(
auto_merging_engine_0,
app_id ='app_0' # 设置应用ID
)# 使用TruLens记录器准备评估
tru_recorder_en = get_prebuilt_trulens_recorder(
auto_merging_engine_0_en,
app_id ='app_0_en' # 设置应用ID
)然后,我们从预先准备好的问题文件中加载评估问题,并定义一个运行评估的函数。这个函数将遍历所有评估问题,并记录每个问题的查询结果。
# 加载评估问题
eval_questions = []
with open('./data/generated_questions.txt', 'r', encoding="utf8") as file:
for line in file:
item = line.strip() # 移除换行符
eval_questions.append(item)# 加载评估问题
eval_questions_en = []
with open('./data/generated_questions_en.txt', 'r') as file:
for line in file:
item = line.strip() # 移除换行符
eval_questions_en.append(item)最后,我们使用上面定义的函数运行评估,并通过 TruLens 获取并展示排行榜。
import time
# 定义运行评估的函数
def run_evals(eval_questions, tru_recorder, query_engine):
for question in eval_questions:
with tru_recorder as recording:
response = query_engine.query(question)
time.sleep(2)
# 此处运行评估并记录结果# 对两层结构进行评估
run_evals(eval_questions, tru_recorder, auto_merging_engine_0)Output
> Merging 3 nodes into parent node. > Parent node id: d33cd5ff-82dc-4ba8-a6d7-c3b77f35315b. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 3/13 本体论将知识表示为⼀个领域内的⼀ 组概... > Merging 4 nodes into parent node. > Parent node id: 4a656a65-c52b-410b-8152-1545952c47ad. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 6/13智能是否可以使⽤⾼级符号表达,如词和想法... > Merging 3 nodes into parent node. > Parent node id: cc7c42fb-22be-4ba5-b8c4-281f4b8b6236. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 4/13 Kismet,⼀个具有表情等社交能⼒ ... > Merging 3 nodes into parent node. > Parent node id: fded6622-1120-4fae-8784-fe5052059204. > Parent node text: 2017年6⽉份马云在美国底特律举⾏“链接世界”(Gateway 17)产业⼤会,会上提出⼈⼯智能可能导致第三次世界⼤战,因为前两次产业⾰命都导致两次⼤ 战,战争原因并⾮这些创新发明本⾝,⽽是发... > Merging 2 nodes into parent node. > Parent node id: d6a24814-902b-4670-9bad-70f7a5be9f03. > Parent node text: The Behavioral and Brain Sciences, vol. 3, 1980) 关于强⼈⼯智能的争论,不同于更⼴义的⼀元论和⼆元论的争论。其争论要点是:如果⼀台机器的唯⼀⼯作原... > Merging 2 nodes into parent node. > Parent node id: fded6622-1120-4fae-8784-fe5052059204. > Parent node text: 2017年6⽉份马云在美国底特律举⾏“链接世界”(Gateway 17)产业⼤会,会上提出⼈⼯智能可能导致第三次世界⼤战,因为前两次产业⾰命都导致两次⼤ 战,战争原因并⾮这些创新发明本⾝,⽽是发... > Merging 2 nodes into parent node. > Parent node id: 8dd15e3b-2094-4fb8-9a72-c621ee342481. > Parent node text: 其它关于 动物 或其它⼈造系统的智能也普遍被认为是⼈⼯智能相关的研究课题。 ⼈⼯智能⽬前在 电脑 领域内,得到了愈加⼴泛的发挥。并在 机器⼈ 、经济政治决策、 控制系统 、仿真系统 中得到应⽤。... > Merging 4 nodes into parent node. > Parent node id: d33cd5ff-82dc-4ba8-a6d7-c3b77f35315b. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 3/13 本体论将知识表示为⼀个领域内的⼀ 组概... > Merging 4 nodes into parent node. > Parent node id: e72ee5b0-427f-475e-8142-69703f6d2c05. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 5/133. 把AI当作同事,形成协同合作的团队... > Merging 3 nodes into parent node. > Parent node id: 12551bc8-6bdd-4504-b2e5-2b572d628504. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 2/13“⼈⼯智能”的各地常⽤名称 中国⼤陆⼈⼯... > Merging 3 nodes into parent node. > Parent node id: d6a24814-902b-4670-9bad-70f7a5be9f03. > Parent node text: The Behavioral and Brain Sciences, vol. 3, 1980) 关于强⼈⼯智能的争论,不同于更⼴义的⼀元论和⼆元论的争论。其争论要点是:如果⼀台机器的唯⼀⼯作原... > Merging 3 nodes into parent node. > Parent node id: d05268fc-e638-4cf4-aa06-bb827ff13a27. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 8/13东映特摄剧《 假⾯骑⼠Z ERO-ONE... > Merging 3 nodes into parent node. > Parent node id: cc7c42fb-22be-4ba5-b8c4-281f4b8b6236. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 4/13 Kismet,⼀个具有表情等社交能⼒ ... > Merging 2 nodes into parent node. > Parent node id: 8dd15e3b-2094-4fb8-9a72-c621ee342481. > Parent node text: 其它关于 动物 或其它⼈造系统的智能也普遍被认为是⼈⼯智能相关的研究课题。 ⼈⼯智能⽬前在 电脑 领域内,得到了愈加⼴泛的发挥。并在 机器⼈ 、经济政治决策、 控制系统 、仿真系统 中得到应⽤。... > Merging 2 nodes into parent node. > Parent node id: d6a24814-902b-4670-9bad-70f7a5be9f03. > Parent node text: The Behavioral and Brain Sciences, vol. 3, 1980) 关于强⼈⼯智能的争论,不同于更⼴义的⼀元论和⼆元论的争论。其争论要点是:如果⼀台机器的唯⼀⼯作原... > Merging 3 nodes into parent node. > Parent node id: 12551bc8-6bdd-4504-b2e5-2b572d628504. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 2/13“⼈⼯智能”的各地常⽤名称 中国⼤陆⼈⼯... > Merging 3 nodes into parent node. > Parent node id: 12551bc8-6bdd-4504-b2e5-2b572d628504. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 2/13“⼈⼯智能”的各地常⽤名称 中国⼤陆⼈⼯... > Merging 4 nodes into parent node. > Parent node id: e72ee5b0-427f-475e-8142-69703f6d2c05. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 5/133. 把AI当作同事,形成协同合作的团队... > Merging 3 nodes into parent node. > Parent node id: d6a24814-902b-4670-9bad-70f7a5be9f03. > Parent node text: The Behavioral and Brain Sciences, vol. 3, 1980) 关于强⼈⼯智能的争论,不同于更⼴义的⼀元论和⼆元论的争论。其争论要点是:如果⼀台机器的唯⼀⼯作原... > Merging 4 nodes into parent node. > Parent node id: 12551bc8-6bdd-4504-b2e5-2b572d628504. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 2/13“⼈⼯智能”的各地常⽤名称 中国⼤陆⼈⼯... > Merging 3 nodes into parent node. > Parent node id: 4a656a65-c52b-410b-8152-1545952c47ad. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 6/13智能是否可以使⽤⾼级符号表达,如词和想法... > Merging 2 nodes into parent node. > Parent node id: 8dd15e3b-2094-4fb8-9a72-c621ee342481. > Parent node text: 其它关于 动物 或其它⼈造系统的智能也普遍被认为是⼈⼯智能相关的研究课题。 ⼈⼯智能⽬前在 电脑 领域内,得到了愈加⼴泛的发挥。并在 机器⼈ 、经济政治决策、 控制系统 、仿真系统 中得到应⽤。... > Merging 4 nodes into parent node. > Parent node id: 12551bc8-6bdd-4504-b2e5-2b572d628504. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 2/13“⼈⼯智能”的各地常⽤名称 中国⼤陆⼈⼯... > Merging 2 nodes into parent node. > Parent node id: fded6622-1120-4fae-8784-fe5052059204. > Parent node text: 2017年6⽉份马云在美国底特律举⾏“链接世界”(Gateway 17)产业⼤会,会上提出⼈⼯智能可能导致第三次世界⼤战,因为前两次产业⾰命都导致两次⼤ 战,战争原因并⾮这些创新发明本⾝,⽽是发... > Merging 2 nodes into parent node. > Parent node id: 8dd15e3b-2094-4fb8-9a72-c621ee342481. > Parent node text: 其它关于 动物 或其它⼈造系统的智能也普遍被认为是⼈⼯智能相关的研究课题。 ⼈⼯智能⽬前在 电脑 领域内,得到了愈加⼴泛的发挥。并在 机器⼈ 、经济政治决策、 控制系统 、仿真系统 中得到应⽤。... > Merging 2 nodes into parent node. > Parent node id: fded6622-1120-4fae-8784-fe5052059204. > Parent node text: 2017年6⽉份马云在美国底特律举⾏“链接世界”(Gateway 17)产业⼤会,会上提出⼈⼯智能可能导致第三次世界⼤战,因为前两次产业⾰命都导致两次⼤ 战,战争原因并⾮这些创新发明本⾝,⽽是发... > Merging 3 nodes into parent node. > Parent node id: 12551bc8-6bdd-4504-b2e5-2b572d628504. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 2/13“⼈⼯智能”的各地常⽤名称 中国⼤陆⼈⼯... > Merging 2 nodes into parent node. > Parent node id: d6a24814-902b-4670-9bad-70f7a5be9f03. > Parent node text: The Behavioral and Brain Sciences, vol. 3, 1980) 关于强⼈⼯智能的争论,不同于更⼴义的⼀元论和⼆元论的争论。其争论要点是:如果⼀台机器的唯⼀⼯作原... > Merging 2 nodes into parent node. > Parent node id: fded6622-1120-4fae-8784-fe5052059204. > Parent node text: 2017年6⽉份马云在美国底特律举⾏“链接世界”(Gateway 17)产业⼤会,会上提出⼈⼯智能可能导致第三次世界⼤战,因为前两次产业⾰命都导致两次⼤ 战,战争原因并⾮这些创新发明本⾝,⽽是发... > Merging 3 nodes into parent node. > Parent node id: d6a24814-902b-4670-9bad-70f7a5be9f03. > Parent node text: The Behavioral and Brain Sciences, vol. 3, 1980) 关于强⼈⼯智能的争论,不同于更⼴义的⼀元论和⼆元论的争论。其争论要点是:如果⼀台机器的唯⼀⼯作原... > Merging 3 nodes into parent node. > Parent node id: 4a656a65-c52b-410b-8152-1545952c47ad. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 6/13智能是否可以使⽤⾼级符号表达,如词和想法... > Merging 5 nodes into parent node. > Parent node id: 4a656a65-c52b-410b-8152-1545952c47ad. > Parent node text: 2/2/24, 2:43 PM ⼈⼯智能 - 维基百科,⾃由的百科全书 https://zh.wikipedia.org/wiki/ ⼈⼯智能 6/13智能是否可以使⽤⾼级符号表达,如词和想法... > Merging 2 nodes into parent node. > Parent node id: 54c0b611-afdd-455f-ad8d-323bdac93a92. > Parent node text: 这和其他的⼦符号⽅法,如模糊控制和进化计算,都属于计算智能学科研 究范畴[59]。 1990年代,⼈⼯智能研究发展出复杂的数学⼯具来解决特定的分⽀问题。这些⼯具是真正的科学⽅法,即这些⽅法的结果... > Merging 1 nodes into parent node. > Parent node id: 76fbc499-4fc9-41b4-b14e-090faa72952d. > Parent node text: ⽆论哪种学习⽅法都会进⾏误差分析,从⽽知道所提的⽅法在理论上是否误差有上限。 ⾃然语⾔处理探讨如何处理及运⽤⾃然语⾔,⾃然语⾔认知则是指让电脑“懂”⼈类的语⾔。⾃然语⾔⽣成系统把计算机数据转化为...
# 对两层结构进行评估
run_evals(eval_questions_en, tru_recorder_en, auto_merging_engine_0_en)Output
> Merging 1 nodes into parent node. > Parent node id: 95c8fa62-58cc-46a9-b08c-77fc05473471. > Parent node text: PAGE 26If you’re considering a role switch, a startup can be an easier place to do it than a big ... > Merging 1 nodes into parent node. > Parent node id: db5ac140-f84a-4b8f-89c3-e4e47887874b. > Parent node text: PAGE 25Finding a job has a few predictable steps that include selecting the companies to which yo... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 0e0b6fee-493b-4a04-8a15-1d72c2c36e1d. > Parent node text: PAGE 19Develop a side hustle. Even if you have a full-time job, a fun project that may or may not... > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 89264c70-af58-4055-83bc-c1bef94fe799. > Parent node text: PAGE 30Finding someone to interview isn’t always easy, but many people who are in senior position... > Merging 1 nodes into parent node. > Parent node id: f7fdeb9f-592b-4dd2-8860-4de8f4d1d35d. > Parent node text: PAGE 27There’s a lot we don’t know about the future: When will we cure Alzheimer’s disease? Who w... > Merging 2 nodes into parent node. > Parent node id: f6fbda9b-9353-4bc7-8869-6760f8aeae27. > Parent node text: PAGE 20Working on projects requires making tough choices about what to build and how to go about... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 0e0b6fee-493b-4a04-8a15-1d72c2c36e1d. > Parent node text: PAGE 19Develop a side hustle. Even if you have a full-time job, a fun project that may or may not... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 880bd756-51fd-4297-8a0d-212f72d3ac57. > Parent node text: PAGE 24A Simple Framework for Starting Your AI Job SearchCHAPTER 7 JOBS > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 2 nodes into parent node. > Parent node id: f6fbda9b-9353-4bc7-8869-6760f8aeae27. > Parent node text: PAGE 20Working on projects requires making tough choices about what to build and how to go about... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: f7fdeb9f-592b-4dd2-8860-4de8f4d1d35d. > Parent node text: PAGE 27There’s a lot we don’t know about the future: When will we cure Alzheimer’s disease? Who w... > Merging 1 nodes into parent node. > Parent node id: 0e0b6fee-493b-4a04-8a15-1d72c2c36e1d. > Parent node text: PAGE 19Develop a side hustle. Even if you have a full-time job, a fun project that may or may not... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 82324caa-53eb-43db-88e3-41999292befd. > Parent node text: PAGE 17Finding Projects that Complement Your Career GoalsCHAPTER 5 PROJECTS > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 2 nodes into parent node. > Parent node id: d349af76-66b2-47a5-841a-bb333ee3a17e. > Parent node text: PAGE 9In the previous chapter, I introduced three key steps for building a career in AI: learning... > Merging 1 nodes into parent node. > Parent node id: 108d8e75-c878-4cbe-91cd-7a285057700b. > Parent node text: PAGE 4Coding AI Is the New Literacy Today we take it for granted that many people know how to rea... > Merging 1 nodes into parent node. > Parent node id: 81cd1121-06fe-4bbf-b47a-20ff14269ef4. > Parent node text: PAGE 10This is a lot to learn! Even after you master everything on this list, I hope you’ll keep ... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: d36513e5-d7f1-4700-9db1-8d83845aec3e. > Parent node text: PAGE 38Before we dive into the final chapter of this book, I’d like to address the serious matter... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 8959ebcc-0e7d-4e3d-9770-2664b8400cb8. > Parent node text: PAGE 12Should You Learn Math to Get a Job in AI? CHAPTER 3 LEARNING > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 81cd1121-06fe-4bbf-b47a-20ff14269ef4. > Parent node text: PAGE 10This is a lot to learn! Even after you master everything on this list, I hope you’ll keep ... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: c1583f84-c6d4-4c8d-a08b-49e0a4954794. > Parent node text: PAGE 11 The Best Way to Build a New Habit One of my favorite books is BJ Fogg’s, Tiny Habits: Th... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 924402c7-d26d-402c-9d53-2e327e5ac40e. > Parent node text: PAGE 8Learning Technical Skills for a Promising AI CareerCHAPTER 2 LEARNING > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 1 nodes into parent node. > Parent node id: 95c8fa62-58cc-46a9-b08c-77fc05473471. > Parent node text: PAGE 26If you’re considering a role switch, a startup can be an easier place to do it than a big ... > Merging 1 nodes into parent node. > Parent node id: db5ac140-f84a-4b8f-89c3-e4e47887874b. > Parent node text: PAGE 25Finding a job has a few predictable steps that include selecting the companies to which yo... > Merging 1 nodes into parent node. > Parent node id: 89264c70-af58-4055-83bc-c1bef94fe799. > Parent node text: PAGE 30Finding someone to interview isn’t always easy, but many people who are in senior position... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 89264c70-af58-4055-83bc-c1bef94fe799. > Parent node text: PAGE 30Finding someone to interview isn’t always easy, but many people who are in senior position... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 0e0b6fee-493b-4a04-8a15-1d72c2c36e1d. > Parent node text: PAGE 19Develop a side hustle. Even if you have a full-time job, a fun project that may or may not... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 89264c70-af58-4055-83bc-c1bef94fe799. > Parent node text: PAGE 30Finding someone to interview isn’t always easy, but many people who are in senior position... > Merging 1 nodes into parent node. > Parent node id: 21c8d7be-7c3c-48dd-9b96-27ccc0e706c6. > Parent node text: PAGE 28Using Informational Interviews to Find the Right JobCHAPTER 8 JOBS > Merging 1 nodes into parent node. > Parent node id: 880bd756-51fd-4297-8a0d-212f72d3ac57. > Parent node text: PAGE 24A Simple Framework for Starting Your AI Job SearchCHAPTER 7 JOBS > Merging 1 nodes into parent node. > Parent node id: db5ac140-f84a-4b8f-89c3-e4e47887874b. > Parent node text: PAGE 25Finding a job has a few predictable steps that include selecting the companies to which yo... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 2 nodes into parent node. > Parent node id: 83651026-2f44-423e-a72c-c93117348111. > Parent node text: PAGE 32In this chapter, I’d like to discuss some fine points of finding a job. The typical job ... > Merging 1 nodes into parent node. > Parent node id: 21c8d7be-7c3c-48dd-9b96-27ccc0e706c6. > Parent node text: PAGE 28Using Informational Interviews to Find the Right JobCHAPTER 8 JOBS > Merging 1 nodes into parent node. > Parent node id: 880bd756-51fd-4297-8a0d-212f72d3ac57. > Parent node text: PAGE 24A Simple Framework for Starting Your AI Job SearchCHAPTER 7 JOBS > Merging 1 nodes into parent node. > Parent node id: daaa89b7-3df6-43df-a0c5-7e4d4864636a. > Parent node text: PAGE 31Finding the Right AI Job for YouCHAPTER 9 JOBS > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: ddb56829-91b0-4941-8147-cd04e7311219. > Parent node text: PAGE 34Keys to Building a Career in AICHAPTER 10 JOBS > Merging 1 nodes into parent node. > Parent node id: 89264c70-af58-4055-83bc-c1bef94fe799. > Parent node text: PAGE 30Finding someone to interview isn’t always easy, but many people who are in senior position... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 1 nodes into parent node. > Parent node id: 924402c7-d26d-402c-9d53-2e327e5ac40e. > Parent node text: PAGE 8Learning Technical Skills for a Promising AI CareerCHAPTER 2 LEARNING > Merging 1 nodes into parent node. > Parent node id: f7fdeb9f-592b-4dd2-8860-4de8f4d1d35d. > Parent node text: PAGE 27There’s a lot we don’t know about the future: When will we cure Alzheimer’s disease? Who w... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: c9ba0db2-22e9-4260-a0d2-a594a347876a. > Parent node text: PAGE 21Building a Portfolio of Projects that Shows Skill Progression CHAPTER 6 PROJECTS > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 1 nodes into parent node. > Parent node id: db5ac140-f84a-4b8f-89c3-e4e47887874b. > Parent node text: PAGE 25Finding a job has a few predictable steps that include selecting the companies to which yo... > Merging 1 nodes into parent node. > Parent node id: 95c8fa62-58cc-46a9-b08c-77fc05473471. > Parent node text: PAGE 26If you’re considering a role switch, a startup can be an easier place to do it than a big ... > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 2 nodes into parent node. > Parent node id: 83651026-2f44-423e-a72c-c93117348111. > Parent node text: PAGE 32In this chapter, I’d like to discuss some fine points of finding a job. The typical job ... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: f7fdeb9f-592b-4dd2-8860-4de8f4d1d35d. > Parent node text: PAGE 27There’s a lot we don’t know about the future: When will we cure Alzheimer’s disease? Who w... > Merging 1 nodes into parent node. > Parent node id: 89264c70-af58-4055-83bc-c1bef94fe799. > Parent node text: PAGE 30Finding someone to interview isn’t always easy, but many people who are in senior position... > Merging 1 nodes into parent node. > Parent node id: d36513e5-d7f1-4700-9db1-8d83845aec3e. > Parent node text: PAGE 38Before we dive into the final chapter of this book, I’d like to address the serious matter... > Merging 1 nodes into parent node. > Parent node id: 212868af-70b1-4eab-ace2-829b078974e5. > Parent node text: PAGE 39My three-year-old daughter (who can barely count to 12) regularly tries to teach things to... > Merging 1 nodes into parent node. > Parent node id: 94031f2f-c7c2-4c3b-b523-1f65493d963f. > Parent node text: PAGE 37Overcoming Imposter SyndromeCHAPTER 11 > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 89264c70-af58-4055-83bc-c1bef94fe799. > Parent node text: PAGE 30Finding someone to interview isn’t always easy, but many people who are in senior position... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 924402c7-d26d-402c-9d53-2e327e5ac40e. > Parent node text: PAGE 8Learning Technical Skills for a Promising AI CareerCHAPTER 2 LEARNING > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 9771ef5e-b1b1-4f2b-9e6d-ceafb415f5aa. > Parent node text: PAGE 40Make Every Day CountFinal Thoughts Every year on my birthday, I get to thinking about the ... > Merging 1 nodes into parent node. > Parent node id: c1583f84-c6d4-4c8d-a08b-49e0a4954794. > Parent node text: PAGE 11 The Best Way to Build a New Habit One of my favorite books is BJ Fogg’s, Tiny Habits: Th... > Merging 1 nodes into parent node. > Parent node id: f7fdeb9f-592b-4dd2-8860-4de8f4d1d35d. > Parent node text: PAGE 27There’s a lot we don’t know about the future: When will we cure Alzheimer’s disease? Who w... > Merging 2 nodes into parent node. > Parent node id: f6fbda9b-9353-4bc7-8869-6760f8aeae27. > Parent node text: PAGE 20Working on projects requires making tough choices about what to build and how to go about... > Merging 1 nodes into parent node. > Parent node id: 108d8e75-c878-4cbe-91cd-7a285057700b. > Parent node text: PAGE 4Coding AI Is the New Literacy Today we take it for granted that many people know how to rea... > Merging 1 nodes into parent node. > Parent node id: 988133b8-bd97-40e4-a6db-6c4073d3604a. > Parent node text: PAGE 2"AI is the new electricity. It will transform and improve all areas of human life." Andr... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 1 nodes into parent node. > Parent node id: 21c8d7be-7c3c-48dd-9b96-27ccc0e706c6. > Parent node text: PAGE 28Using Informational Interviews to Find the Right JobCHAPTER 8 JOBS > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 2 nodes into parent node. > Parent node id: d349af76-66b2-47a5-841a-bb333ee3a17e. > Parent node text: PAGE 9In the previous chapter, I introduced three key steps for building a career in AI: learning... > Merging 1 nodes into parent node. > Parent node id: d36513e5-d7f1-4700-9db1-8d83845aec3e. > Parent node text: PAGE 38Before we dive into the final chapter of this book, I’d like to address the serious matter... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 108d8e75-c878-4cbe-91cd-7a285057700b. > Parent node text: PAGE 4Coding AI Is the New Literacy Today we take it for granted that many people know how to rea... > Merging 1 nodes into parent node. > Parent node id: 81cd1121-06fe-4bbf-b47a-20ff14269ef4. > Parent node text: PAGE 10This is a lot to learn! Even after you master everything on this list, I hope you’ll keep ... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 9ece81e9-ccc2-423f-9101-88c993bc6102. > Parent node text: PAGE 14Scoping Successful AI ProjectsCHAPTER 4 PROJECTS > Merging 1 nodes into parent node. > Parent node id: 82324caa-53eb-43db-88e3-41999292befd. > Parent node text: PAGE 17Finding Projects that Complement Your Career GoalsCHAPTER 5 PROJECTS > Merging 1 nodes into parent node. > Parent node id: a0159f01-178e-442f-b6e1-aa8cdaf2f6aa. > Parent node text: PAGE 5Three Steps to Career GrowthCHAPTER 1 > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 0e0b6fee-493b-4a04-8a15-1d72c2c36e1d. > Parent node text: PAGE 19Develop a side hustle. Even if you have a full-time job, a fun project that may or may not... > Merging 1 nodes into parent node. > Parent node id: 924402c7-d26d-402c-9d53-2e327e5ac40e. > Parent node text: PAGE 8Learning Technical Skills for a Promising AI CareerCHAPTER 2 LEARNING > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 0e0b6fee-493b-4a04-8a15-1d72c2c36e1d. > Parent node text: PAGE 19Develop a side hustle. Even if you have a full-time job, a fun project that may or may not... > Merging 1 nodes into parent node. > Parent node id: 82324caa-53eb-43db-88e3-41999292befd. > Parent node text: PAGE 17Finding Projects that Complement Your Career GoalsCHAPTER 5 PROJECTS > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 0e0b6fee-493b-4a04-8a15-1d72c2c36e1d. > Parent node text: PAGE 19Develop a side hustle. Even if you have a full-time job, a fun project that may or may not... > Merging 1 nodes into parent node. > Parent node id: 82324caa-53eb-43db-88e3-41999292befd. > Parent node text: PAGE 17Finding Projects that Complement Your Career GoalsCHAPTER 5 PROJECTS > Merging 1 nodes into parent node. > Parent node id: 9ece81e9-ccc2-423f-9101-88c993bc6102. > Parent node text: PAGE 14Scoping Successful AI ProjectsCHAPTER 4 PROJECTS > Merging 1 nodes into parent node. > Parent node id: 108d8e75-c878-4cbe-91cd-7a285057700b. > Parent node text: PAGE 4Coding AI Is the New Literacy Today we take it for granted that many people know how to rea... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 8959ebcc-0e7d-4e3d-9770-2664b8400cb8. > Parent node text: PAGE 12Should You Learn Math to Get a Job in AI? CHAPTER 3 LEARNING > Merging 1 nodes into parent node. > Parent node id: d36513e5-d7f1-4700-9db1-8d83845aec3e. > Parent node text: PAGE 38Before we dive into the final chapter of this book, I’d like to address the serious matter... > Merging 1 nodes into parent node. > Parent node id: 988133b8-bd97-40e4-a6db-6c4073d3604a. > Parent node text: PAGE 2"AI is the new electricity. It will transform and improve all areas of human life." Andr... > Merging 1 nodes into parent node. > Parent node id: 212868af-70b1-4eab-ace2-829b078974e5. > Parent node text: PAGE 39My three-year-old daughter (who can barely count to 12) regularly tries to teach things to... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 95c8fa62-58cc-46a9-b08c-77fc05473471. > Parent node text: PAGE 26If you’re considering a role switch, a startup can be an easier place to do it than a big ... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 8959ebcc-0e7d-4e3d-9770-2664b8400cb8. > Parent node text: PAGE 12Should You Learn Math to Get a Job in AI? CHAPTER 3 LEARNING > Merging 1 nodes into parent node. > Parent node id: a0159f01-178e-442f-b6e1-aa8cdaf2f6aa. > Parent node text: PAGE 5Three Steps to Career GrowthCHAPTER 1 > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 212868af-70b1-4eab-ace2-829b078974e5. > Parent node text: PAGE 39My three-year-old daughter (who can barely count to 12) regularly tries to teach things to... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 212868af-70b1-4eab-ace2-829b078974e5. > Parent node text: PAGE 39My three-year-old daughter (who can barely count to 12) regularly tries to teach things to... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 8959ebcc-0e7d-4e3d-9770-2664b8400cb8. > Parent node text: PAGE 12Should You Learn Math to Get a Job in AI? CHAPTER 3 LEARNING > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 2 nodes into parent node. > Parent node id: d349af76-66b2-47a5-841a-bb333ee3a17e. > Parent node text: PAGE 9In the previous chapter, I introduced three key steps for building a career in AI: learning... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 1 nodes into parent node. > Parent node id: 81cd1121-06fe-4bbf-b47a-20ff14269ef4. > Parent node text: PAGE 10This is a lot to learn! Even after you master everything on this list, I hope you’ll keep ... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 108d8e75-c878-4cbe-91cd-7a285057700b. > Parent node text: PAGE 4Coding AI Is the New Literacy Today we take it for granted that many people know how to rea... > Merging 1 nodes into parent node. > Parent node id: 0739e57d-3834-4794-b479-25971c8cceea. > Parent node text: PAGE 22Over the course of a career, you’re likely to work on projects in succession, each growing... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 6abfebf1-807f-4961-925c-4506de715664. > Parent node text: PAGE 29If you’re preparing to switch roles (say, taking a job as a machine learning engineer for ... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 5f7f8a9b-96da-41be-b906-e9e52084b647. > Parent node text: PAGE 15One of the most important skills of an AI architect is the ability to identify ideas that ... > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 52d5d005-7105-408e-851e-213942a04dd0. > Parent node text: PAGE 16Determine milestones. Once you’ve deemed a project sufficiently valuable, the next step i... > Merging 1 nodes into parent node. > Parent node id: 34343c7a-bbc6-4d62-8dca-cea4fab0cdf0. > Parent node text: PAGE 23Each project is only one step on a longer journey, hopefully one that has a positive impac... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 1 nodes into parent node. > Parent node id: 0e2d88a0-d0af-4efd-97dd-19a0a45d7a44. > Parent node text: PAGE 6The rapid rise of AI has led to a rapid rise in AI jobs, and many people are building excit... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 8959ebcc-0e7d-4e3d-9770-2664b8400cb8. > Parent node text: PAGE 12Should You Learn Math to Get a Job in AI? CHAPTER 3 LEARNING > Merging 1 nodes into parent node. > Parent node id: 924402c7-d26d-402c-9d53-2e327e5ac40e. > Parent node text: PAGE 8Learning Technical Skills for a Promising AI CareerCHAPTER 2 LEARNING > Merging 1 nodes into parent node. > Parent node id: d36513e5-d7f1-4700-9db1-8d83845aec3e. > Parent node text: PAGE 38Before we dive into the final chapter of this book, I’d like to address the serious matter... > Merging 1 nodes into parent node. > Parent node id: 94031f2f-c7c2-4c3b-b523-1f65493d963f. > Parent node text: PAGE 37Overcoming Imposter SyndromeCHAPTER 11 > Merging 1 nodes into parent node. > Parent node id: c52f5841-04c2-4e9b-8aa3-4f081ae1d223. > Parent node text: PAGE 3Table of ContentsIntroduction: Coding AI is the New Literacy. Chapter 1: Three Steps to Ca... > Merging 1 nodes into parent node. > Parent node id: 212868af-70b1-4eab-ace2-829b078974e5. > Parent node text: PAGE 39My three-year-old daughter (who can barely count to 12) regularly tries to teach things to... > Merging 1 nodes into parent node. > Parent node id: 304c92a4-7169-4c00-a074-a293ac0cc32e. > Parent node text: PAGE 35Keys to Building a Career in AI CHAPTER 10 The path to career success in AI is more comple... > Merging 1 nodes into parent node. > Parent node id: 20225074-fd66-4387-bc5e-99921ba84edb. > Parent node text: PAGE 7These phases apply in a wide range of professions, but AI involves unique elements. For e... > Merging 1 nodes into parent node. > Parent node id: 108d8e75-c878-4cbe-91cd-7a285057700b. > Parent node text: PAGE 4Coding AI Is the New Literacy Today we take it for granted that many people know how to rea... > Merging 1 nodes into parent node. > Parent node id: 71104f5e-d17b-4017-9cdc-a4439e918124. > Parent node text: PAGE 36Keys to Building a Career in AI CHAPTER 10 Of all the steps in building a career, this on... > Merging 1 nodes into parent node. > Parent node id: 9145b623-e40f-4038-95af-d99ee4d6cba6. > Parent node text: PAGE 33Choose who to work with. It’s tempting to take a position because of the projects you’ll w... > Merging 1 nodes into parent node. > Parent node id: 6548dd32-96ca-4041-928f-88a052e642b4. > Parent node text: PAGE 13Should you Learn Math to Get a Job in AI? CHAPTER 3 Is math a foundational skill for AI? I... > Merging 1 nodes into parent node. > Parent node id: 75a5c366-ccda-4712-8525-d8dc14abb04b. > Parent node text: PAGE 18It goes without saying that we should only work on projects that are responsible, ethical,... > Merging 1 nodes into parent node. > Parent node id: 988133b8-bd97-40e4-a6db-6c4073d3604a. > Parent node text: PAGE 2"AI is the new electricity. It will transform and improve all areas of human life." Andr...
from trulens_eval import Tru
# 获取并显示排行榜
Tru().get_leaderboard(app_ids=[])Output
Answer Relevance Groundedness Context Relevance latency \
app_id
app_0_en 0.979167 0.746528 0.413333 6.5
total_cost
app_id
app_0_en 0.00375 | Answer Relevance | Groundedness | Context Relevance | latency | total_cost | |
|---|---|---|---|---|---|
| app_id | |||||
| app_0_en | 0.979167 | 0.746528 | 0.413333 | 6.5 | 0.00375 |
# 运行TruLens仪表板查看详细评估结果
Tru().run_dashboard()Output
Starting dashboard ... Config file already exists. Skipping writing process. Credentials file already exists. Skipping writing process.
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks... To disable this warning, you can either: - Avoid using `tokenizers` before the fork if possible - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
Accordion(children=(VBox(children=(VBox(children=(Label(value='STDOUT'), Output())), VBox(children=(Label(valu…
Dashboard started at http://192.168.2.7:8501 .
<Popen: returncode: None args: ['streamlit', 'run', '--server.headless=True'...>
3.2、三层结构的索引构建
接下来,我们将尝试一个更复杂的自动合并索引构建方法,包含三层结构,并可能提高检索的质量。
# 构建具有三层结构的自动合并索引
auto_merging_index_1 = build_automerging_index(
documents,
llm=OpenAI(model="gpt-3.5-turbo", temperature=0.1),
embed_model="local:BAAI/bge-small-zh-v1.5",
save_dir="merging_index_1",
chunk_sizes=[2048, 512, 128], # 三层结构的块大小设置
)# 构建具有三层结构的自动合并索引
auto_merging_index_1_en = build_automerging_index(
documents_en,
llm=OpenAI(model="gpt-3.5-turbo", temperature=0.1),
embed_model="local:BAAI/bge-small-en-v1.5",
save_dir="merging_index_1_en",
chunk_sizes=[2048, 512, 128], # 三层结构的块大小设置
)为这个三层结构的自动合并索引设置查询引擎。
# 获取三层结构的自动合并查询引擎
auto_merging_engine_1 = get_automerging_query_engine(
auto_merging_index_1,
similarity_top_k=12,
rerank_top_n=6,
)# 获取三层结构的自动合并查询引擎
auto_merging_engine_1_en = get_automerging_query_engine(
auto_merging_index_1_en,
similarity_top_k=12,
rerank_top_n=6,
)同样,我们定义一个 TruLens 记录器,并用相同的评估问题运行评估。
# 为三层结构准备TruLens记录器
tru_recorder = get_prebuilt_trulens_recorder(
auto_merging_engine_1,
app_id ='app_1' # 设置应用ID
)# 为三层结构准备TruLens记录器
tru_recorder_en = get_prebuilt_trulens_recorder(
auto_merging_engine_1_en,
app_id ='app_1_en' # 设置应用ID
)# 对三层结构进行评估
run_evals(eval_questions, tru_recorder, auto_merging_engine_1)Output
> Merging 4 nodes into parent node. > Parent node id: 90b3476a-489a-4fee-beb7-1c5363a50ab7. > Parent node text: [16] ⼈类解决问题的模式通常是⽤最快捷、直观的判断,⽽不是有意识的、⼀步⼀步的推导,早期⼈⼯智能研究通常使⽤逐步推导的⽅式。[17]⼈⼯智能研究已经 于这种“次表征性的”解决问题⽅法获取进展... > Merging 2 nodes into parent node. > Parent node id: 7bab41fa-272e-4847-a568-e22dbc7e9fed. > Parent node text: 依⽬前的研究⽅向,电脑⽆法突变、苏醒、产⽣⾃我意志,AI也不可能具有创意与智能、同情⼼与审美等这⽅⾯的能⼒。 AI逐渐普及后,将会在企业管理中扮演很重要的⾓⾊,⽽⼈类的管理者应 如何适度的调整⾃... > Merging 5 nodes into parent node. > Parent node id: b6df9f33-521b-434b-b26d-8f6876a93184. > Parent node text: 其它关于 动物 或其它⼈造系统的智能也普遍被认为是⼈⼯智能相关的研究课题。 ⼈⼯智能⽬前在 电脑 领域内,得到了愈加⼴泛的发挥。并在 机器⼈ 、经济政治决策、 控制系统 、仿真系统 中得到应⽤。... > Merging 3 nodes into parent node. > Parent node id: a7a0bda7-af15-46f6-a27f-28cf2b2357e0. > Parent node text: 2017年6⽉份马云在美国底特律举⾏“链接世界”(Gateway 17)产业⼤会,会上提出⼈⼯智能可能导致第三次世界⼤战,因为前两次产业⾰命都导致两次⼤ 战,战争原因并⾮这些创新发明本⾝,⽽是发... > Merging 1 nodes into parent node. > Parent node id: 93ed48c1-a43a-4ebe-ab72-46dd57662601. > Parent node text: 这与认知科学领域中的表征 感知论点是⼀致的:更⾼的智能需要个体的表征(如移动,感知和形象)。 计算智能:1 980年代中 David Rumelhart等再次提出 神经⽹络 和联结主义[58]。
# 对三层结构进行评估
run_evals(eval_questions_en, tru_recorder_en, auto_merging_engine_1_en)from trulens_eval import Tru
# 获取并显示排行榜
Tru().get_leaderboard(app_ids=[])Output
Context Relevance Groundedness Answer Relevance latency \
app_id
app_0 0.358788 0.888571 0.9400 7.866667
app_1 NaN NaN 0.9125 7.866667
total_cost
app_id
app_0 0.0
app_1 0.0 | Context Relevance | Groundedness | Answer Relevance | latency | total_cost | |
|---|---|---|---|---|---|
| app_id | |||||
| app_0 | 0.358788 | 0.888571 | 0.9400 | 7.866667 | 0.0 |
| app_1 | NaN | NaN | 0.9125 | 7.866667 | 0.0 |
# 运行TruLens仪表板查看详细评估结果
Tru().run_dashboard()Output
Starting dashboard ... Config file already exists. Skipping writing process. Credentials file already exists. Skipping writing process. Dashboard already running at path: Network URL: http://192.168.2.7:8501
<Popen: returncode: None args: ['streamlit', 'run', '--server.headless=True'...>
通过比较两层和三层结构的自动合并索引的 TruLens 评估结果,我们可以深入了解不同层次结构对检索性能的影响,并据此优化我们的自动合并策略。
