Skip to content

Commit

Permalink
changed the max search results to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
adeelehsan committed Jul 18, 2024
1 parent a6d6896 commit 26bba1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const ChatView = ({
emptyStateDisplay,
isInitiallyOpen,
zIndex = 9999,
numberOfSearchResults = 15,
numberOfSearchResults = 10,
language = "eng",
enableFactualConsistencyScore,
summaryPromptName,
Expand Down
2 changes: 1 addition & 1 deletion src/useChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const useChat = ({
customerId,
corpusKey,
apiKey,
numberOfSearchResults = 15,
numberOfSearchResults = 10,
language = "eng",
enableFactualConsistencyScore,
summaryPromptName = DEFAULT_SUMMARIZER,
Expand Down
2 changes: 0 additions & 2 deletions src/utils/sendSearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const sendSearchRequest = async ({
customerId,
corpusKey,
apiKey,
authToken,
query,
domain,
search,
Expand Down Expand Up @@ -195,7 +194,6 @@ export const sendSearchRequest = async ({
};

if (apiKey) headers["x-api-key"] = apiKey;
if (authToken) headers["Authorization"] = `Bearer ${authToken}`;

const url = `${domain ?? DEFAULT_DOMAIN}/v2/chats`;
const response = await fetch(url, {
Expand Down

0 comments on commit 26bba1d

Please sign in to comment.