Skip to content

Commit

Permalink
prompt filepath fix
Browse files Browse the repository at this point in the history
  • Loading branch information
azavalny committed Oct 10, 2024
1 parent e6b95be commit 08d5798
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ MANIFEST
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
Expand Down
Binary file modified requirements.txt
Binary file not shown.
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def query_llm():

RAG = data_manager.query_from_index(query)
RAG = improve_rag(RAG, query)
system_prompt = open(r"prompts\system.txt", 'r').read()
instructions = open(r"prompts\instructions.txt", 'r').read()
system_prompt = open(os.path.join("prompts", "system.txt"), 'r').read()
instructions = open(os.path.join("prompts", "instructions.txt"), 'r').read()
output_format = "\nPlease answer only in a couple sentences and render the entire response in markdown but organize the code using level 2 headings and paragraphs. Feel free to use lists and other markdown features"
user_prompt = f'{RAG}\n\n {instructions} \n\n{query} + {output_format}'
def generate():
Expand Down

0 comments on commit 08d5798

Please sign in to comment.