Update nextjs-llama3 community template to use latest LlamaIndexTS #13

Closed
opened 2026-02-15 19:15:07 -05:00 by yindo · 3 comments
Owner

Originally created by @jozemario on GitHub (May 9, 2024).

using create-llama@0.1.1

1 week before it was working now i received errors when calling replicate api, no changes to template just adding api keys and running
using "llamaindex": "0.3.8"
Screenshot 2024-05-08 at 23 32 38

using llamaindex 0.2.10

Screenshot 2024-05-08 at 23 34 18
Originally created by @jozemario on GitHub (May 9, 2024). using create-llama@0.1.1 1 week before it was working now i received errors when calling replicate api, no changes to template just adding api keys and running using "llamaindex": "0.3.8" <img width="995" alt="Screenshot 2024-05-08 at 23 32 38" src="https://github.com/run-llama/create-llama/assets/13593111/d0cd59a5-2a85-4123-be8a-0b2ef5529b1c"> using llamaindex 0.2.10 <img width="1461" alt="Screenshot 2024-05-08 at 23 34 18" src="https://github.com/run-llama/create-llama/assets/13593111/5a70f5f0-a24b-4f81-abac-29a95bfd39a5">
yindo closed this issue 2026-02-15 19:15:07 -05:00
Author
Owner

@marcusschiesser commented on GitHub (May 13, 2024):

@jozemario great catch.

The version 0.2.10 is fixed in the https://github.com/run-llama/create_llama_projects/blob/0f8af6c8a75bb9bba2bbb6824dcb3ae93434abb4/nextjs-llama3/package.json#L20 so it should always use that version.

Streaming was updated in 0.3.x so this template needs to updated to work with 0.3.x.

@marcusschiesser commented on GitHub (May 13, 2024): @jozemario great catch. The version 0.2.10 is fixed in the https://github.com/run-llama/create_llama_projects/blob/0f8af6c8a75bb9bba2bbb6824dcb3ae93434abb4/nextjs-llama3/package.json#L20 so it should always use that version. Streaming was updated in 0.3.x so this template needs to updated to work with 0.3.x.
Author
Owner

@jte0711 commented on GitHub (May 19, 2024):

Had same problem with other class SimpleDirectoryReader.

Attempted import error: 'SimpleDirectoryReader' is not exported from 'llamaindex' (imported as 'SimpleDirectoryReader').

Did i do something wrong with the import? I tried these but same results:

import { SimpleDirectoryReader } from "llamaindex/readers/SimpleDirectoryReader";
import { SimpleDocumentStore, VectorStoreIndex ,SimpleDirectoryReader} from "llamaindex";
@jte0711 commented on GitHub (May 19, 2024): Had same problem with other class `SimpleDirectoryReader`. ``` Attempted import error: 'SimpleDirectoryReader' is not exported from 'llamaindex' (imported as 'SimpleDirectoryReader'). ``` Did i do something wrong with the import? I tried these but same results: 1. ```javascript import { SimpleDirectoryReader } from "llamaindex/readers/SimpleDirectoryReader"; ``` 2. ```javascript import { SimpleDocumentStore, VectorStoreIndex ,SimpleDirectoryReader} from "llamaindex"; ```
Author
Owner

@marcusschiesser commented on GitHub (May 20, 2024):

@jte0711 This is happening with llamaindex 0.2.10?

@marcusschiesser commented on GitHub (May 20, 2024): @jte0711 This is happening with llamaindex `0.2.10`?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#13