Skip to content

Commit

Permalink
Merge pull request #180 from nulib/no-full-text-llm
Browse files Browse the repository at this point in the history
Remove full_text from LLM prompt
  • Loading branch information
mbklein authored Dec 13, 2023
2 parents 0a17e2f + b293beb commit 0dd7f7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions chat/src/handlers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def handler(event, context):
)

try:
for doc in docs:
doc.metadata['full_text'] = ''
doc_response = [doc.__dict__ for doc in docs]
original_question = {"question": question, "source_documents": doc_response}
socket.send(original_question)
Expand Down
2 changes: 1 addition & 1 deletion chat/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Resources:
- x86_64
Layers:
- !Ref ChatDependencies
MemorySize: 128
MemorySize: 1024
Handler: handlers/chat.handler
Timeout: 300
Environment:
Expand Down

0 comments on commit 0dd7f7f

Please sign in to comment.