Skip to content

Commit

Permalink
Fix source_documents typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bdb-dd committed Apr 29, 2024
1 parent dd64483 commit 92e3ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/admin/src/components/RagSourceView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const RagSourceView: React.FC<Params> = ({ message }) => {
return (
<Box sx={{ flexWrap: "wrap" }}>
<ul>
{message.content?.source_docs?.map((docObj: object, index: number) => (
{message.content?.source_documents?.map((docObj: object, index: number) => (
<li>
<Box flexDirection="column">
<span>
Expand Down
1 change: 1 addition & 0 deletions apps/slack-app/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ app.message(async ({ message, say }) => {
translated_answer: ragResponse.translated_answer || '',
search_queries: ragResponse.search_queries,
source_urls: ragResponse.source_urls,
source_documents: ragResponse.source_documents || [],
relevant_urls: ragResponse.relevant_urls,
not_loaded_urls: ragResponse.not_loaded_urls || [],
rag_success: !!ragResponse.rag_success,
Expand Down

0 comments on commit 92e3ca7

Please sign in to comment.