Skip to content

minor document fix #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
495 changes: 253 additions & 242 deletions README.md

Large diffs are not rendered by default.

Binary file removed docs/bankofamerica.pdf
Binary file not shown.
Binary file removed docs/citigroup.pdf
Binary file not shown.
20 changes: 20 additions & 0 deletions target/classes/application-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
spring.ai.openai.api-key=${OPENAI_API_KEY}
spring.ai.openai.base-url=${OPENAI_URL}
spring.ai.openai.chat.options.model=${OPENAI_MODEL}
spring.ai.openai.embedding.options.model=${OPENAI_EMBEDDING_MODEL}
spring.ai.openai.chat.options.temperature=0.5
#spring.datasource.url=jdbc:oracle:thin:@${VECTORDB}:1521/ORCLPDB1
spring.datasource.url=jdbc:oracle:thin:@${VECTORDB}:1521/FREEPDB1
spring.datasource.username=${DB_USER}
spring.datasource.password=${DB_PASSWORD}
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
config.tempDir=tempDir
config.dropDb=true
config.vectorDB=vectortable
config.distance=EUCLIDEAN
#config.distance=COSINE
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=20MB
spring.ai.ollama.base-url=${OLLAMA_URL}
spring.ai.ollama.embedding.options.model=${OLLAMA_EMBEDDINGS}
spring.ai.ollama.chat.options.model=${OLLAMA_MODEL}
17 changes: 17 additions & 0 deletions target/classes/application-prod.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spring.ai.openai.api-key=${OPENAI_API_KEY}
spring.ai.openai.base-url=${OPENAI_URL}
spring.ai.openai.chat.options.model=${OPENAI_MODEL}
spring.ai.openai.embedding.options.model=${OPENAI_EMBEDDING_MODEL}
spring.datasource.url=jdbc:oracle:thin:@${VECTORDB}:1521/FREEPDB1
spring.datasource.username=${DB_USER}
spring.datasource.password=${DB_PASSWORD}
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
config.tempDir=tempDir
config.dropDb=true
config.vectorDB=vectortable
config.distance=EUCLIDEAN
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=20MB
spring.ai.ollama.base-url=${OLLAMA_URL}
spring.ai.ollama.embedding.options.model=${OLLAMA_EMBEDDINGS}
spring.ai.ollama.chat.options.model=${OLLAMA_MODEL}
1 change: 1 addition & 0 deletions target/classes/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.profiles.active=dev
2 changes: 2 additions & 0 deletions target/classes/json_dual.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[{"_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"}},
{"_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"}}]
11 changes: 11 additions & 0 deletions target/classes/prompt-template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DOCUMENTS:
{documents}

QUESTION:
{question}

INSTRUCTIONS:
Answer the users question using the DOCUMENTS text above.
Keep your answer ground in the facts of the DOCUMENTS.
If the DOCUMENTS doesn’t contain the facts to answer the QUESTION, return:
I'm sorry but I haven't enough information to answer.
Binary file not shown.
Binary file not shown.