Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added reranker id in the config of chat bot #52

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

adeelehsan
Copy link
Contributor

No description provided.

@adeelehsan adeelehsan changed the title added reranker id in the config of chat bot WIP: added reranker id in the config of chat bot Jul 10, 2024
Copy link

github-actions bot commented Jul 10, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-07-15 18:37 UTC

@adeelehsan adeelehsan requested a review from mrderyk July 11, 2024 08:01
@@ -56,6 +56,11 @@ export interface Props {

// Defines the name of the summary prompt. Defaults to "vectara-summary-ext-v1.2.0".
summaryPromptName?: string;

//Define the reranker Id to be used , Defaults to "272725718"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can we add a space after the "//" please?

src/types.ts Outdated
@@ -95,3 +95,5 @@ export type ChatTurn = {
results: DeserializedSearchResult[];
factualConsistencyScore?: number;
};

export type RerankerIds = 272725717 | 272725719 | 272725718
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be singular: RerankerId

src/useChat.ts Outdated
@@ -68,7 +75,7 @@ export const useChat = ({
queryValue: query,
rerank: true,
rerankNumResults: 7,
rerankerId: 272725718,
rerankerId: rerankerId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, this can be simply rerankerId. JS will infer that we're assigning a variable of this name to a field of the same name. This comment applies in a few other places.

@adeelehsan adeelehsan changed the title WIP: added reranker id in the config of chat bot added reranker id in the config of chat bot Jul 15, 2024
@adeelehsan adeelehsan merged commit f93ef07 into main Jul 15, 2024
4 checks passed
@adeelehsan adeelehsan deleted the updating-config-parameters branch July 15, 2024 18:37
@adeelehsan adeelehsan restored the updating-config-parameters branch July 18, 2024 16:40
@adeelehsan adeelehsan deleted the updating-config-parameters branch July 18, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants