Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions apps/site/next.constants.mjs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All of these references are now dead 🤷

Original file line number Diff line number Diff line change
Expand Up @@ -130,27 +130,11 @@ export const DEFAULT_ORAMA_QUERY_PARAMS = {
},
};

/**
* The initial Orama Cloud chat suggestions visible in the empty state of the search box.
*/
export const DEFAULT_ORAMA_SUGGESTIONS = [
'How to install Node.js?',
'How to create an HTTP server?',
'Upgrading Node.js version',
];

/**
* The default batch size to use when syncing Orama Cloud
*/
export const ORAMA_SYNC_BATCH_SIZE = 250;

/**
* The default Orama Cloud endpoint to use when searching with Orama Cloud.
*/
export const ORAMA_CLOUD_ENDPOINT =
process.env.NEXT_PUBLIC_ORAMA_ENDPOINT ||
'https://cloud.orama.run/v1/indexes/nodejs-org-dev-hhqrzv';

/**
* The default Orama Cloud API Key to use when searching with Orama Cloud.
* This is a public API key and can be shared publicly on the frontend.
Expand All @@ -159,13 +143,6 @@ export const ORAMA_CLOUD_READ_API_KEY =
process.env.NEXT_PUBLIC_NEW_ORAMA_API_KEY ||
'c1__KPYDQNEFr$nFgrTgFTVLHf8BuNf08COBqBUzk65AYJEmSsJONPsO$_cihl';

/**
* The default Orama Cloud Datasource ID to use when searching with Orama Cloud.
*/
export const ORAMA_CLOUD_DATASOURCE_ID =
process.env.NEXT_PUBLIC_NEW_ORAMA_DATASOURCE_ID ||
'6044121f-53c3-46af-aaf0-f498e3c548f2';

/**
* The default Orama Cloud Project ID to use when initializing Orama Cloud.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ const SearchSuggestions: FC<SearchSuggestionsProps> = ({
<Suggestions.Wrapper className={styles.suggestionsWrapper}>
{label && <p className={styles.suggestionsTitle}>{label}</p>}
{suggestions.map((suggestion, i) => (
<Suggestions.Item {...props} key={i} className={styles.suggestionItem}>
<SparklesIcon />
<Suggestions.Item
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put a breakpoint within https://github.com/oramasearch/orama-ui/blob/main/packages/ui/src/components/Suggestions.tsx#L53-L59 - and I can see the stream return from the useChat ask call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copilot thinks it might have to do with context order or nesting... that could make sense as we moved things around across package boundaries. I will keep plugging away

{...props}
key={`suggestion-${i}`}
className={styles.suggestionItem}
>
<SparklesIcon key={`suggestion-icon-${i}`} />
{suggestion}
</Suggestions.Item>
))}
Expand Down
Loading