Skip to content

Commit d8810cf

Browse files
[FIX] Fixed issue where context is empty (#1211)
Added the context if found Co-authored-by: Ritwik G <100672805+ritwik-g@users.noreply.github.com>
1 parent 3e16597 commit d8810cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • prompt-service/src/unstract/prompt_service

prompt-service/src/unstract/prompt_service/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ def fetch_context_from_vector_db(
782782
msg,
783783
)
784784
raise APIError(message=msg)
785+
context.add(retrieved_context)
785786
except SdkError as e:
786787
msg = f"Unable to fetch context from vector DB. {str(e)}"
787788
app.logger.error(

0 commit comments

Comments
 (0)