Skip to content

Commit

Permalink
Merge pull request #486 from shekharchavan1990/oda_rag_poc_nl2sql_latest
Browse files Browse the repository at this point in the history
Oda rag poc nl2sql latest
  • Loading branch information
liudmylaru authored Sep 4, 2024
2 parents b4937aa + 8210040 commit d1aa1a4
Show file tree
Hide file tree
Showing 114 changed files with 5,709 additions and 401 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"# Copy Model from huggingface\n",
"# git clone https://huggingface.co/jinaai/jina-embeddings-v2-base-en\n",
"# cd jina-embeddings-v2-base-en\n",
"# rm *.onnx\n",
"# wget https://huggingface.co/jinaai/jina-embeddings-v2-base-en/resolve/main/model-w-mean-pooling.onnx\n",
"# cd ..\n",
"# mkdir embedding_model_artifact\n",
Expand Down Expand Up @@ -464,4 +465,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}

Large diffs are not rendered by default.

784 changes: 424 additions & 360 deletions LLM/oda_examples/oda-oci-data-science-oracledb-23ai-llm/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ CONSTRAINT fk_book

create table VECTORS
("ID" VARCHAR2(64) NOT NULL,
"VEC" VECTOR(1024, FLOAT64),
"VEC" VECTOR(768, FLOAT64),
PRIMARY KEY ("ID")
);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def oracle_query(
if verbose:
logger.info(f"SQL Query: {select}")

cursor.execute(select, [vector_str])
cursor.execute(select, [array_query])
rows = cursor.fetchall()

result_nodes, node_ids, similarities = [], [], []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@ transformers==4.41.2
triton==2.3.1
typing-inspect==0.9.0
wrapt==1.16.0
xxhash==3.4.1
xxhash==3.4.1
oracledb==2.4.1

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit d1aa1a4

Please sign in to comment.