Home

常用CYPHER查询(五)

Here’s the table of contents: Graph RAG 通常引用的格式 多标签并发查询 将查询结果转换为树结构 日期处理 Graph RAG 通常引用的格式 MATCH p=(n:图谱大纲)-[r*..2]-() WHERE ANY(word IN ['cpi'] WHERE n.topic CONTAINS UPPER(word)) WITH NODES(p) AS nodes, RELATIONSHIPS(p) AS rels RETURN REDUCE(s = '', i IN RANGE(0, SIZE(nodes) - 2) | s + nodes[i].topic + ', ' + (CASE WHEN STARTNODE(re...

Read more

Elasticsearch-7.5.1测试向量检索功能

Here’s the table of contents: Elasticsearch-7.5.1测试向量检索功能 Elasticsearch-7.5.1测试向量检索功能 # https://github.com/elastic/elasticsearch/blob/e8c382f89553e3a7aaafa88a5934288c1192acdc/docs/reference/vectors/vector-functions.asciidoc # 在向量函数计算过程中,对所有匹配的文档进行线性扫描。因此,查询预计时间会随着匹配文档的数量线性增长。出于这个原因,建议使用查询参数限制匹配文档的数量。 # cosinessimilarity -计算余弦相似度 # dotPro...

Read more

streamlit.cli问题解决

Here’s the table of contents: streamlit.cli问题解决 streamlit.cli问题解决 修改streamlit版本后这个问题解决 pip install streamlit==1.12.0 pip install streamlit --upgrade streamlit hello GITHUB: [Regression][Conda] ModuleNotFoundError: No module named ‘streamlit.cli’

Read more

UNSAFE_LEGACY_RENEGOTIATION_DISABLED问题解决

Here’s the table of contents: UNSAFE_LEGACY_RENEGOTIATION_DISABLED问题解决 UNSAFE_LEGACY_RENEGOTIATION_DISABLED问题解决 可以降低版本到 OpenSSL 1.1.1 或使用以下代码: import urllib3 from urllib3.util.ssl_ import create_urllib3_context ctx = create_urllib3_context() ctx.load_default_certs() ctx.options |= 0x4 # ssl.OP_LEGACY_SERVER_CONNECT with urllib3.Poo...

Read more

自主代理(Autonomous Agents)

Here’s the table of contents: 自主代理(Autonomous Agents) 简介 核心技术 让 AI 使用工具的案例 使用搜索引擎 使用知识库 自主代理(Autonomous Agents) 简介   自主代理(Autonomous Agents)是由人工智能驱动的程序,当给定目标时,它们能够为自己创建任务,完成任务,创建新任务,重新确定任务列表的优先级,完成新的顶级任务,循环(递归的思想)直到达到目标。   可以给自主代理(Autonomous Agents)一个任务,比如发一...

Read more

Anaconda命令

Here’s the table of contents: Conda Comand Conda Comand # 更新Conda conda update -n base -c defaults conda # 创建虚拟环境 conda env create --name langchain-crash-course --file env.yaml # 激活虚拟环境 conda activate langchain-crash-course # 显示所有环境 conda env list # 当前环境下的package信息存入名为environment的YAML文件中 conda env export > environment.yaml # 删...

Read more

使用apoc.load.xls处理Excel文件

Here’s the table of contents: 使用apoc.load.xls处理Excel文件 XLS 下载POI 使用远程地址加载 本地文件加载 XLSX 下载依赖 使用远程地址加载 本地文件加载 参数说明 输入参数 配置参数 输出参数 使用apoc.load.xls处理Excel文...

Read more