Skip to content

Commit

Permalink
Minor Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnayak committed Sep 19, 2024
1 parent 4b137f5 commit 62e21dc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ curl -fsSL https://ollama.com/install.sh | sh
Run the Ollama application:

```bash
ollama run lama3.1:8b-instruct-q4_0
ollama run llama3.1:8b-instruct-q4_0
```

## Step 7: Start the Flask Application
Expand Down
2 changes: 1 addition & 1 deletion src/agent/test_query_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
load_dotenv()

Settings.llm = Ollama(
model=os.getenv("OLLAMA_MODEL_NAME", "llama3.1:8b-instruct-q4_0"),
model=os.getenv("OLLAMA_MODEL_NAME", "lllama3.1:8b-instruct-q4_0"),
base_url=os.getenv("OLLAMA_HOST_URL", "http://127.0.0.1:11434"),
request_timeout=36000.0,
)
Expand Down
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from agent.query_pipeline import qp

Settings.llm = Ollama(
model=os.getenv("OLLAMA_MODEL_NAME", "llama3.1:8b-instruct-q4_0"),
model=os.getenv("OLLAMA_MODEL_NAME", "lllama3.1:8b-instruct-q4_0"),
base_url=os.getenv("OLLAMA_HOST_URL", "http://127.0.0.1:11434"),
request_timeout=36000.0,
)
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ export default function Page({ params }: { params: { id: string } }) {
// break;
}
else if (currentState['done']) {
addMessage({ role: "assistant", content: '<a style="font-size: 1.5rem; text-decoration: underline; font-style: italic;" href="' + currentState['url'] + '" target="_blank">GoaT Link!</a>', id: chatId });
addMessage({ role: "assistant", content: "Webpage Details:\nHere is the JSON curated after parsing the above webpage:\n\n" + currentState['api_response'], id: chatId });
addMessage({ role: "assistant", content: currentState['markdown'], id: chatId });
addMessage({ role: "assistant", content: '<a style="font-size: 1.5rem; text-decoration: underline; font-style: italic;" href="' + currentState['url'] + '" target="_blank">GoaT Link!</a>', id: chatId });
addMessage({ role: "user", content: "Webpage Details:\nHere is the JSON curated after parsing the above webpage:\n\n" + currentState['api_response'], id: chatId });
setMessages([...messages]);
setLoadingSubmit(false);
break;
Expand Down
6 changes: 3 additions & 3 deletions ui/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ export default function Home() {
// break;
}
else if (currentState['done']) {
addMessage({ role: "assistant", content: '<a style="font-size: 1.5rem; text-decoration: underline; font-style: italic;" href="' + currentState['url'] + '" target="_blank">GoaT Link!</a>', id: chatId });
addMessage({ role: "assistant", content: "Webpage Details:\nHere is the JSON curated after parsing the above webpage:\n\n" + JSON.stringify(currentState['api_response']), id: chatId });
addMessage({ role: "assistant", content: currentState['markdown'], id: chatId });
addMessage({ role: "assistant", content: '<a style="font-size: 1.5rem; text-decoration: underline; font-style: italic;" href="' + currentState['url'] + '" target="_blank">GoaT Link!</a>', id: chatId });
addMessage({ role: "user", content: "Webpage Details:\nHere is the JSON curated after parsing the above webpage:\n\n" + JSON.stringify(currentState['api_response']), id: chatId });
setMessages([...messages]);
setLoadingSubmit(false);
break;
Expand Down Expand Up @@ -249,7 +249,7 @@ export default function Home() {
/>
<DialogContent className="flex flex-col space-y-4">
<DialogHeader className="space-y-2">
<DialogTitle>Welcome to Ollama!</DialogTitle>
<DialogTitle>Welcome to Goat NLP!</DialogTitle>
<DialogDescription>
Enter your name to get started. This is just to personalize your
experience.
Expand Down
16 changes: 8 additions & 8 deletions ui/src/lib/model-helper.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export function getSelectedModel(): string {
if (typeof window !== 'undefined') {
const storedModel = localStorage.getItem('selectedModel');
return storedModel || 'gemma:2b';
} else {
// Default model
return 'gemma:2b';
}
}
if (typeof window !== 'undefined') {
const storedModel = localStorage.getItem('selectedModel');
return storedModel || 'llama3.1:8b-instruct-q4_0';
} else {
// Default model
return 'llama3.1:8b-instruct-q4_0';
}
}

0 comments on commit 62e21dc

Please sign in to comment.