updated neo4j rag

This commit is contained in:
Karthik Soman
2024-03-16 22:38:44 -07:00
parent 810049cf8f
commit 3995749c42

View File

@@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": 113,
"id": "699455f0",
"id": "f0ed1d29",
"metadata": {},
"outputs": [],
"source": [
@@ -20,7 +20,7 @@
},
{
"cell_type": "markdown",
"id": "cbf1c562",
"id": "1d905ac1",
"metadata": {},
"source": [
"## Choose the LLM"
@@ -29,7 +29,7 @@
{
"cell_type": "code",
"execution_count": 114,
"id": "9102f0c0",
"id": "763d7ad7",
"metadata": {},
"outputs": [],
"source": [
@@ -38,7 +38,7 @@
},
{
"cell_type": "markdown",
"id": "2f1e4ea1",
"id": "f02bd807",
"metadata": {},
"source": [
"## Load test data"
@@ -47,7 +47,7 @@
{
"cell_type": "code",
"execution_count": 115,
"id": "7594b269",
"id": "43772231",
"metadata": {},
"outputs": [],
"source": [
@@ -57,7 +57,7 @@
},
{
"cell_type": "markdown",
"id": "7ad69d00",
"id": "8bb1d1e3",
"metadata": {},
"source": [
"## Custom function for neo4j RAG chain"
@@ -66,7 +66,7 @@
{
"cell_type": "code",
"execution_count": 116,
"id": "d12ff060",
"id": "611fee8c",
"metadata": {},
"outputs": [],
"source": [
@@ -110,7 +110,7 @@
},
{
"cell_type": "markdown",
"id": "a6ba8f00",
"id": "8b920685",
"metadata": {},
"source": [
"## Initiate neo4j RAG chain"
@@ -119,7 +119,7 @@
{
"cell_type": "code",
"execution_count": 117,
"id": "8f7ef2b9",
"id": "29b40370",
"metadata": {},
"outputs": [
{
@@ -147,7 +147,7 @@
},
{
"cell_type": "markdown",
"id": "0b160b48",
"id": "cfa082f8",
"metadata": {},
"source": [
"## Run on test data"
@@ -156,7 +156,7 @@
{
"cell_type": "code",
"execution_count": 118,
"id": "083c0f55",
"id": "172e0f96",
"metadata": {},
"outputs": [
{
@@ -1138,7 +1138,7 @@
},
{
"cell_type": "markdown",
"id": "7579d90d",
"id": "9cd8b31b",
"metadata": {},
"source": [
"## Run on perturbed test data"
@@ -1147,7 +1147,7 @@
{
"cell_type": "code",
"execution_count": 119,
"id": "8d9b4626",
"id": "8e603e8f",
"metadata": {},
"outputs": [
{
@@ -2121,7 +2121,7 @@
},
{
"cell_type": "markdown",
"id": "c21b5784",
"id": "5ea4a4a9",
"metadata": {},
"source": [
"## Save the result"
@@ -2130,7 +2130,7 @@
{
"cell_type": "code",
"execution_count": 120,
"id": "b9bc3771",
"id": "27ea4be4",
"metadata": {},
"outputs": [],
"source": [
@@ -2143,7 +2143,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f27596a6",
"id": "8f956d94",
"metadata": {},
"outputs": [],
"source": []