embedchainjs icon indicating copy to clipboard operation
embedchainjs copied to clipboard

Make it more configurable?

Open bluematter opened this issue 1 year ago • 2 comments

It would be nice to pass different models here https://github.com/embedchain/embedchainjs/blob/ff5c5fef4bf3dc7ae3b44d28142e42f596829b14/embedchain/embedchain.ts#L146 i.e gpt-4

Also I am thinking about deploying a chromadb instance on cloudformation https://docs.trychroma.com/deployment?lang=js

So it would be nice to not have to rely on it being on the same machine the js is running on i.e :8000 https://github.com/embedchain/embedchainjs/blob/ff5c5fef4bf3dc7ae3b44d28142e42f596829b14/embedchain/vectordb/ChromaDb.ts#L21

For now I could create my own DB instance I suppose? Something like

async function App(db) {
  const navalChatBot = new EmbedChain(db);
  // ... Other initialization logic
  return navalChatBot;
}

//Run the app commands inside an async function only
async function testApp() {
  const myDB = new MyCustomDB();
  const navalChatBot = await App(myDB);

bluematter avatar Jul 11 '23 01:07 bluematter

Also would be really nice to have an API to partition data somehow based on customers.

bluematter avatar Jul 11 '23 01:07 bluematter

I've been busy with the python package, it has many config options, feature parity is supposed to come sooner than later.

cachho avatar Jul 11 '23 07:07 cachho