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

Display row number in the UI if present #46

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Conversation

conradocloudera
Copy link
Collaborator

No description provided.

Metadata
</Typography.Title>
<Typography.Text>
Row number: {chunkContents.data?.metadata.row_number}
Copy link
Collaborator

Choose a reason for hiding this comment

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

the check on line 134 means we know data exists.

Suggested change
Row number: {chunkContents.data?.metadata.row_number}
Row number: {chunkContents.data.metadata.row_number}

type ChunkContents = string;
interface ChunkContentsResponse {
text: string;
metadata: Record<string, any>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe just string or string | number?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can start with that

@conradocloudera conradocloudera merged commit 50bdcd0 into main Nov 22, 2024
3 checks passed
@conradocloudera conradocloudera deleted the cm/row-number branch November 22, 2024 22:12
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.

2 participants