Skip to content

Commit e928677

Browse files
author
Davide Mauri
committed
updated comments
1 parent c1a81ca commit e928677

6 files changed

Lines changed: 723 additions & 6 deletions

File tree

DiskANN/Wikipedia/004a-generate-search-vector-local.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
44
The following code loads a pre-generated embedding for the text
55
"The foundation series by Isaac Asimov" using the "ada2-text-embedding" model
6-
Uncomment the following text if you don't have access to a OpenAI model,
7-
otherwise it is recommended to use the new "ai_generate_embedding" function
8-
by using the code in the file '004c-generate-search-vector-openai.sql'
6+
in case if you don't have access to a OpenAI model, it is recommended
7+
to use the new "ai_generate_embedding" function by using the code in the file '004c-generate-search-vector-openai.sql'
98
*/
109
use WikipediaTest
1110
go

DiskANN/Wikipedia/004b-generate-search-vector-github.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
44
The following code loads a pre-generated embedding for the text
55
"The foundation series by Isaac Asimov" using the "ada2-text-embedding" model
6-
Uncomment the following text if you don't have access to a OpenAI model,
7-
otherwise it is recommended to use the new "ai_generate_embedding" function
8-
by using the code in the "Option 2" section below
6+
in case if you don't have access to a OpenAI model, it is recommended
7+
to use the new "ai_generate_embedding" function by using the code in the file '004c-generate-search-vector-openai.sql'
98
*/
109
use WikipediaTest
1110
go

Langchain-SQL-RAG/.env.sample

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
# Azure OpenAI Service details
3+
AZURE_ENDPOINT="https://<yourdeployment>.openai.azure.com/"
4+
AZURE_DEPLOYMENT_EMBEDDING_NAME="<embeddingmodeldeploymentname"
5+
AZURE_DEPLOYMENT_CHATCOMPLETION_NAME="<chatcompletionmodeldeploymentname>"
6+
AZURE_API_VERSION="2023-05-15"
7+
AZURE_API_KEY="<yourkey"
8+
9+
10+
#Blob Storage Account details
11+
AZURE_CONN_STR="DefaultEndpointsProtocol=https;AccountName=<YourBlobName>;AccountKey=<YourAccountKey>;EndpointSuffix=core.windows.net"
12+
AZURE_CONTAINER_NAME="YourContainerName"
13+
14+
# Use only one of the below. The one you are not using should be commented out.
15+
# For Entra ID Service Principle Authentication
16+
ENTRA_CONNECTION_STRING="Driver={ODBC Driver 18 for SQL Server};LongAsMax=yes;Server=tcp:<yourdbserver>.database.windows.net;Database=<yourdbname>;"
17+
18+
# For SQL Authentication
19+
SQL_CONNECTION_STRING="Driver={ODBC Driver 18 for SQL Server};LongAsMax=yes;Server=tcp:<yourserver>.database.windows.net;Database=<database>;Uid=<your-username>;Pwd=<your-password>;"

Langchain-SQL-RAG/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.pdf
2+
*.docx
3+
*.doc
4+
*.xls
5+
*.xlsx
6+
*.ppt
7+
*.pptx
8+
*.txt
9+
*.csv
10+
*.jpg
11+
*.jpeg
12+
*.png
13+
*.gif
14+
*.bmp
15+
*.tif
16+
*.tiff
17+
*.svg
18+
*.eps
19+
*.ai
20+
*.psd
21+
*.env

0 commit comments

Comments
 (0)