Skip to content

Commit

Permalink
Inkeep docs touchups (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-inkeep authored Feb 20, 2024
1 parent 8321607 commit 29073cb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 32 deletions.
3 changes: 2 additions & 1 deletion docs/pages/docs/api-reference/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
"langchain-stream": "LangChainStream",
"openai-stream": "OpenAIStream",
"replicate-stream": "ReplicateStream",
"inkeep-stream": "InkeepStream",
"stream-data": "experimental_StreamData",
"streaming-text-response": "StreamingTextResponse",
"stream-to-response": "streamToResponse",
"assistant-response": "experimental_AssistantResponse",
"tokens": "<Tokens />"
}
}
4 changes: 2 additions & 2 deletions docs/pages/docs/guides/providers/inkeep.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ We can use this to display a list of "Citations" at the end of the main chat mes

```tsx filename="app/Citations.tsx" showLineNumbers
import { Message } from 'ai';
import { InkeepRecordsCitedData } from 'ai/streams';
import type { RecordsCited$ } from '@inkeep/ai-api/models/components';

interface CitationsProps {
annotations: Message['annotations'];
Expand All @@ -239,7 +239,7 @@ export const Citations = ({ annotations }: CitationsProps) => {
const recordsCitedAnnotation = annotations?.find(
item =>
typeof item === 'object' && item !== null && 'records_cited' in item,
) as { records_cited: InkeepRecordsCitedData } | undefined;
) as { records_cited: RecordsCited$.Inbound } | undefined;

// get the citations from the records_cited annotation
const citations = recordsCitedAnnotation?.records_cited?.citations;
Expand Down
6 changes: 2 additions & 4 deletions examples/next-inkeep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
"lint": "next lint"
},
"dependencies": {
"@inkeep/ai-api": "^0.1.4",
"@inkeep/ai-api": "^0.1.8",
"ai": "2.2.35",
"eventsource-parser": "1.1.1",
"next": "14.0.3",
"react": "18.2.0",
"react-dom": "^18.2.0",
"zod": "^3.22.4"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^17.0.12",
Expand Down
10 changes: 0 additions & 10 deletions packages/core/streams/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
export * from './ai-stream';
export * from './aws-bedrock-stream';
export * from './openai-stream';
export * from './streaming-text-response';
export * from './huggingface-stream';
export * from './cohere-stream';
export * from './anthropic-stream';
export * from './inkeep-stream';
export * from './langchain-stream';
export * from './replicate-stream';
export * from '../shared/types';
export * from '../shared/utils';
export * from './ai-stream';
Expand Down
20 changes: 5 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29073cb

Please sign in to comment.