Skip to content
Snippets Groups Projects
Unverified Commit 8cc848ae authored by Alex Yang's avatar Alex Yang Committed by GitHub
Browse files

docs: fix example code (#727)

parent cd54a7a6
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
## Usage ## Usage
```ts ```ts
import { Ollama, Settings } from "llamaindex"; import { Ollama, Settings, DeuceChatStrategy } from "llamaindex";
Settings.llm = new LlamaDeuce({ chatStrategy: DeuceChatStrategy.META }); Settings.llm = new LlamaDeuce({ chatStrategy: DeuceChatStrategy.META });
``` ```
...@@ -11,7 +11,12 @@ Settings.llm = new LlamaDeuce({ chatStrategy: DeuceChatStrategy.META }); ...@@ -11,7 +11,12 @@ Settings.llm = new LlamaDeuce({ chatStrategy: DeuceChatStrategy.META });
## Usage with Replication ## Usage with Replication
```ts ```ts
import { Ollama, ReplicateSession, Settings } from "llamaindex"; import {
Ollama,
ReplicateSession,
Settings,
DeuceChatStrategy,
} from "llamaindex";
const replicateSession = new ReplicateSession({ const replicateSession = new ReplicateSession({
replicateKey, replicateKey,
...@@ -48,7 +53,13 @@ const results = await queryEngine.query({ ...@@ -48,7 +53,13 @@ const results = await queryEngine.query({
## Full Example ## Full Example
```ts ```ts
import { LlamaDeuce, Document, VectorStoreIndex, Settings } from "llamaindex"; import {
LlamaDeuce,
Document,
VectorStoreIndex,
Settings,
DeuceChatStrategy,
} from "llamaindex";
// Use the LlamaDeuce LLM // Use the LlamaDeuce LLM
Settings.llm = new LlamaDeuce({ chatStrategy: DeuceChatStrategy.META }); Settings.llm = new LlamaDeuce({ chatStrategy: DeuceChatStrategy.META });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment