Git Product home page Git Product logo

langchain-chat-with-documents's Issues

error when I send information to openai

data: '{"model":"gpt-3.5-turbo","temperature":1,"top_p":1,"frequency_penalty":0,"presence_penalty":0,"n":1,"stream":false,"messages":[{"role":"user","content":"Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question.\n\nChat History:\n 你知道robomaster 嘛?\nFollow Up Input: 你知道robomaster 嘛?\nStandalone question:"}]}',
url: 'https://api.openai.com/v1/chat/completions'
},
code: 'ERR_NETWORK',
request: Request {
[Symbol(realm)]: { settingsObject: [Object] },
[Symbol(state)]: {
method: 'POST',
localURLsOnly: false,
unsafeRequest: false,
body: [Object],
client: [Object],
reservedClient: null,
replacesClientId: '',
window: 'client',
keepalive: false,
serviceWorkers: 'all',
initiator: '',
destination: '',
priority: null,
origin: 'client',
policyContainer: 'client',
referrer: 'client',
referrerPolicy: '',
mode: 'cors',
useCORSPreflightFlag: false,
credentials: 'same-origin',
useCredentials: false,
cache: 'default',
redirect: 'follow',
integrity: '',
cryptoGraphicsNonceMetadata: '',
parserMetadata: '',
reloadNavigation: false,
historyNavigation: false,
userActivation: false,
taintedOrigin: false,
redirectCount: 0,
responseTainting: 'basic',
preventNoCacheCacheControlHeaderModification: false,
done: false,
timingAllowFailed: false,
headersList: [HeadersList],
urlList: [Array],
url: [URL]
},
[Symbol(signal)]: AbortSignal { aborted: false },
[Symbol(headers)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
}
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON],
attemptNumber: 7,
retriesLeft: 0
}
❌ tRPC failed on chat.prompt: Something went wrong

Error while uploading files "Failed to index document"

I have all the packages up to date, review my Weaviate, cloudflare and OpenAI API. Everything seems to be correct.

I see in cloudflare that the files are correctly uploaded.

This is the error in console when uploading a .txt simple file:
`- ready started server on 0.0.0.0:3000, url: http://localhost:3000

  • info Loaded env from C:\Users\r.ramos\Documents\GitHub\langchain-chat-with-documents.env
    "pnpm" no se reconoce como un comando interno o externo,
    Error: 'Error in addDocuments' TypeError [ERR_INVALID_URL]: Invalid URL
    at WeaviateStore.addVectors (file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/langchain/dist/vectorstores/weaviate.js:103:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async WeaviateStore.fromDocuments (file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/langchain/dist/vectorstores/weaviate.js:155:9)
    at async eval (webpack-internal:///(api)/./src/server/api/routers/weaviate.ts:81:13)
    at async resolveMiddleware (file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:416:30)
    at async callRecursive (file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:452:32)
    at async callRecursive (file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:452:32)
    at async resolve (file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:482:24)
    at async file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/resolveHTTPResponse-e1286cb3.mjs:87:32
    at async Promise.all (index 0)
    at async resolveHTTPResponse (file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/resolveHTTPResponse-e1286cb3.mjs:84:28)
    at async file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/nodeHTTPRequestHandler-f0efcff4.mjs:32:24
    at async file:///C:/Users/r.ramos/Documents/GitHub/langchain-chat-with-documents/node_modules/@trpc/server/dist/adapters/next.mjs:42:9
    ❌ tRPC failed on weaviate.index: Failed to index document`

After I upload the file, I get the following error

Error: 'Error in addDocuments' FetchError: request to https://https//chappyhome-ea1f2qjp.weaviate.network%20#%20do%20not%20use%20https://%20just%20the%20domain%20like%20bellingcat-xxx.weaviate.network/v1/batch/objects failed, reason: getaddrinfo ENOTFOUND https
at WeaviateStore.addVectors (file:///root/ai/langchain-chat-with-documents/node_modules/langchain/dist/vectorstores/weaviate.js:103:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async WeaviateStore.fromDocuments (file:///root/ai/langchain-chat-with-documents/node_modules/langchain/dist/vectorstores/weaviate.js:155:9)
at async eval (webpack-internal:///(api)/./src/server/api/routers/weaviate.ts:80:13)
at async resolveMiddleware (file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:416:30)
at async callRecursive (file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:452:32)
at async callRecursive (file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:452:32)
at async resolve (file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/index.mjs:482:24)
at async file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/resolveHTTPResponse-e1286cb3.mjs:87:32
at async Promise.all (index 0)
at async resolveHTTPResponse (file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/resolveHTTPResponse-e1286cb3.mjs:84:28)
at async file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/nodeHTTPRequestHandler-f0efcff4.mjs:32:24
at async file:///root/ai/langchain-chat-with-documents/node_modules/@trpc/server/dist/adapters/next.mjs:42:9
❌ tRPC failed on weaviate.index: Failed to index document

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.