Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
remove Part x from references
Browse files Browse the repository at this point in the history
  • Loading branch information
fabbas1 committed Aug 17, 2023
1 parent 94fbd5b commit 324dc09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Answer/Answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export const Answer = ({
if (citation.filepath && citation.chunk_id) {
if (truncate && citation.filepath.length > filePathTruncationLimit) {
const citationLength = citation.filepath.length;
citationFilename = `${citation.filepath.substring(0, 20)}...${citation.filepath.substring(citationLength -20)} - Part ${parseInt(citation.chunk_id) + 1}`;
citationFilename = `${citation.filepath.substring(0, 20)}...${citation.filepath.substring(citationLength -20)}`;
}
else {
citationFilename = `${citation.filepath} - Part ${parseInt(citation.chunk_id) + 1}`;
citationFilename = `${citation.filepath}`;
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NYC CHAT BOT</title>
<script type="module" crossorigin src="/assets/index-30fce227.js"></script>
<script type="module" crossorigin src="/assets/index-66d60645.js"></script>
<link rel="stylesheet" href="/assets/index-355b0ec2.css">
</head>
<body>
Expand Down

0 comments on commit 324dc09

Please sign in to comment.