Git Product home page Git Product logo

Comments (6)

abrahammg avatar abrahammg commented on June 13, 2024

Any solution to this issue?

from chat-ollama.

sugarforever avatar sugarforever commented on June 13, 2024

This is very likely that you don't have the LANGSMITH_API_KEY set in the .env.

Please refer to .env.example - https://github.com/sugarforever/chat-ollama/blob/main/.env.example

DISABLE_VERCEL_ANALYTICS=false
OPENAI_API_KEY=
DATABASE_URL=file:../../chatollama.sqlite
CHROMADB_URL=http://localhost:8000

LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=
LANGCHAIN_PROJECT=chat-ollama

If you make a copy of .env from the example, the LANGCHAIN_TRACING_V2 is set to true by default while the API key is set to empty.

We included langsmith package in the bundle, and ChatOllama knowledge base is using LangChain, so when you chat with knowledge base, it will be trying to chat with LangSmith. As there's no API key set, you saw the error above. Make sure you set LANGCHAIN_TRACING_V2 to false if you have no langsmith API key set.

I will update the example with LANGCHAIN_TRACING_V2 set to false by default.

from chat-ollama.

kaikanertan avatar kaikanertan commented on June 13, 2024

This is very likely that you don't have the LANGSMITH_API_KEY set in the .env.

Please refer to .env.example - https://github.com/sugarforever/chat-ollama/blob/main/.env.example

DISABLE_VERCEL_ANALYTICS=false
OPENAI_API_KEY=
DATABASE_URL=file:../../chatollama.sqlite
CHROMADB_URL=http://localhost:8000

LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=
LANGCHAIN_PROJECT=chat-ollama

If you make a copy of .env from the example, the LANGCHAIN_TRACING_V2 is set to true by default while the API key is set to empty.

We included langsmith package in the bundle, and ChatOllama knowledge base is using LangChain, so when you chat with knowledge base, it will be trying to chat with LangSmith. As there's no API key set, you saw the error above. Make sure you set LANGCHAIN_TRACING_V2 to false if you have no langsmith API key set.

I will update the example with LANGCHAIN_TRACING_V2 set to false by default.

重新拉取了docker image。在创建和使用知识库的时候都会报一个404的错误:

chatollama-1 | Ollama: {
chatollama-1 | host: 'http://host.docker.internal:11434',
chatollama-1 | username: 'null',
chatollama-1 | password: 'null'
chatollama-1 | }
chatollama-1 | warn(prisma-client) This is the 10th instance of Prisma Client being started. Make sure this is intentional.
chatollama-1 | Created knowledge base RC oscillator: [object Object]
chromadb-1 | INFO: [13-03-2024 08:07:18] 172.23.0.2:44608 - "POST /api/v1/collections?tenant=default_tenant&database=default_database HTTP/1.1" 200
chatollama-1 | [nuxt] [request error] [unhandled] [500] Request to Ollama server failed: 404 Not Found
chatollama-1 | at OllamaEmbeddings._request (./.output/server/node_modules/@langchain/community/dist/embeddings/ollama.js:121:19)

from chat-ollama.

sugarforever avatar sugarforever commented on June 13, 2024

创建知识库使用的什么文本嵌入模型?确保输入框中输入的模型名前后没有空格。我记得这里目前还没有做处理。

from chat-ollama.

kaikanertan avatar kaikanertan commented on June 13, 2024

创建知识库使用的什么文本嵌入模型?确保输入框中输入的模型名前后没有空格。我记得这里目前还没有做处理。

nomic-embed-text
前后无空格。

Knowledge base RC oscillator with embedding "nomic-embed-text"
Chat with Ollama
User query: summary the paper
[nuxt] [request error] [unhandled] [500] Request to Ollama server failed: 404 Not Found
at OllamaEmbeddings._request (/D:/Program%20Files/chat-ollama/node_modules/@langchain/community/dist/embeddings/ollama.js:121:19)

from chat-ollama.

kaikanertan avatar kaikanertan commented on June 13, 2024

低级问题,没有安装“nomic-embed-text”

from chat-ollama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.