Skip to content

Commit f2c53bf

Browse files
committed
minor document fix
removed tags for code example with the code type.
1 parent f8e6d65 commit f2c53bf

File tree

10 files changed

+304
-242
lines changed

10 files changed

+304
-242
lines changed

README.md

Lines changed: 253 additions & 242 deletions
Large diffs are not rendered by default.

docs/bankofamerica.pdf

-855 KB
Binary file not shown.

docs/citigroup.pdf

-1.01 MB
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
spring.ai.openai.api-key=${OPENAI_API_KEY}
2+
spring.ai.openai.base-url=${OPENAI_URL}
3+
spring.ai.openai.chat.options.model=${OPENAI_MODEL}
4+
spring.ai.openai.embedding.options.model=${OPENAI_EMBEDDING_MODEL}
5+
spring.ai.openai.chat.options.temperature=0.5
6+
#spring.datasource.url=jdbc:oracle:thin:@${VECTORDB}:1521/ORCLPDB1
7+
spring.datasource.url=jdbc:oracle:thin:@${VECTORDB}:1521/FREEPDB1
8+
spring.datasource.username=${DB_USER}
9+
spring.datasource.password=${DB_PASSWORD}
10+
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
11+
config.tempDir=tempDir
12+
config.dropDb=true
13+
config.vectorDB=vectortable
14+
config.distance=EUCLIDEAN
15+
#config.distance=COSINE
16+
spring.servlet.multipart.max-file-size=10MB
17+
spring.servlet.multipart.max-request-size=20MB
18+
spring.ai.ollama.base-url=${OLLAMA_URL}
19+
spring.ai.ollama.embedding.options.model=${OLLAMA_EMBEDDINGS}
20+
spring.ai.ollama.chat.options.model=${OLLAMA_MODEL}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
spring.ai.openai.api-key=${OPENAI_API_KEY}
2+
spring.ai.openai.base-url=${OPENAI_URL}
3+
spring.ai.openai.chat.options.model=${OPENAI_MODEL}
4+
spring.ai.openai.embedding.options.model=${OPENAI_EMBEDDING_MODEL}
5+
spring.datasource.url=jdbc:oracle:thin:@${VECTORDB}:1521/FREEPDB1
6+
spring.datasource.username=${DB_USER}
7+
spring.datasource.password=${DB_PASSWORD}
8+
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
9+
config.tempDir=tempDir
10+
config.dropDb=true
11+
config.vectorDB=vectortable
12+
config.distance=EUCLIDEAN
13+
spring.servlet.multipart.max-file-size=10MB
14+
spring.servlet.multipart.max-request-size=20MB
15+
spring.ai.ollama.base-url=${OLLAMA_URL}
16+
spring.ai.ollama.embedding.options.model=${OLLAMA_EMBEDDINGS}
17+
spring.ai.ollama.chat.options.model=${OLLAMA_MODEL}

target/classes/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
spring.profiles.active=dev

target/classes/json_dual.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[{"_id":10,"departmentName":"ACCOUNTING","location":"NEW YORK","employees":[{"employeeNumber":7782,"employeeName":"CLARK","job":"MANAGER","salary":2450},{"employeeNumber":7839,"employeeName":"KING","job":"PRESIDENT","salary":5000},{"employeeNumber":7934,"employeeName":"MILLER","job":"CLERK","salary":1300}],"_metadata":{"etag":"E546E2220E8F9620E36C2A7F8858D6F7","asof":"00000000004822A1"}},
2+
{"_id":20,"departmentName":"RESEARCH","location":"DALLAS","employees":[{"employeeNumber":7369,"employeeName":"SMITH","job":"CLERK","salary":800},{"employeeNumber":7566,"employeeName":"JONES","job":"MANAGER","salary":2975},{"employeeNumber":7902,"employeeName":"FORD","job":"ANALYST","salary":3000}],"_metadata":{"etag":"3709C26AFF2507248097F11BF906C723","asof":"00000000004822A1"}}]

target/classes/prompt-template.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
DOCUMENTS:
2+
{documents}
3+
4+
QUESTION:
5+
{question}
6+
7+
INSTRUCTIONS:
8+
Answer the users question using the DOCUMENTS text above.
9+
Keep your answer ground in the facts of the DOCUMENTS.
10+
If the DOCUMENTS doesn’t contain the facts to answer the QUESTION, return:
11+
I'm sorry but I haven't enough information to answer.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)