Code Monkey home page Code Monkey logo

embedbase-docs's People

Contributors

ashgansh avatar louis030195 avatar yuvrajchandra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

embedbase-docs's Issues

Error: pages/api/buildPrompt.ts

error - pages/api/buildPrompt.ts (16:19) @ chunk
error - TypeError: Cannot read properties of undefined (reading 'chunk')
    at createContext (webpack-internal:///(api)/./pages/api/buildPrompt.ts:21:22)



httpdocs/embedbase/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js:157:99 {
  page: '/api/buildPrompt'
}
  14 |   const mergedResults = results.join("\n");
  15 |   const chunks = splitText(mergedResults, {});
> 16 |   return chunks[0].chunk;
     |                   ^
  17 | };
  18 |
  19 | export default async function buildPrompt(req, res) {
event - compiled client and server successfully in 86 ms (1339 modules)

Sync.ts Error

node sync.ts

import { createClient, BatchAddDocument } from 'embedbase-js'
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:360:18)
    at wrapSafe (node:internal/modules/cjs/loader:1119:15)
    at Module._compile (node:internal/modules/cjs/loader:1155:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:22:47

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.