(feat:vectors): calc, add token in db

This commit is contained in:
ManishMadan2882
2024-05-24 21:10:50 +05:30
parent 9f1d3b0269
commit 9000838aab
6 changed files with 39 additions and 34 deletions

View File

@@ -13,6 +13,7 @@ export type Doc = {
date: string;
docLink: string;
model: string;
tokens?: string;
};
export type PromptProps = {

View File

@@ -14,6 +14,7 @@ const Documents: React.FC<DocumentsProps> = ({
<tr>
<th className="border-r p-4 md:w-[244px]">Document Name</th>
<th className="w-[244px] border-r px-4 py-2">Vector Date</th>
<th className="w-[244px] border-r px-4 py-2">Token usage</th>
<th className="w-[244px] border-r px-4 py-2">Type</th>
<th className="px-4 py-2"></th>
</tr>
@@ -28,6 +29,9 @@ const Documents: React.FC<DocumentsProps> = ({
<td className="border-r border-t px-4 py-2">
{document.date}
</td>
<td className="border-r border-t px-4 py-2">
{document.tokens ? document.tokens : ''}
</td>
<td className="border-r border-t px-4 py-2">
{document.location === 'remote'
? 'Pre-loaded'