Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👌🏻 IMPROVE: Config for memory #64

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

saqibameen
Copy link
Member

@saqibameen saqibameen commented Oct 16, 2024

Change the config of memory from:

config: {
		useGitRepo: false,
		dirToTrack: path.posix.join(''),
		extToTrack: ['*'],
	},

to

... // rest of the memory details
useGit: true,
include: ['examples/pipe.run.ts', '!.baseai'], // glob patterns
gitignore: true,
git: {
  deployedAt: 'xx',
  embeddedAt: 'xx'
},
...

@saqibameen saqibameen marked this pull request as draft October 16, 2024 07:34
@saqibameen saqibameen force-pushed the memory-config-update branch 2 times, most recently from e20bb00 to b7d0aa9 Compare November 13, 2024 05:25
@saqibameen saqibameen marked this pull request as ready for review November 15, 2024 00:01
@ahmadawais
Copy link
Member

@saqibameen let's make it simple

import { MemoryI } from '@baseai/core'

const buildMemory = (): MemoryI => ({
  // Memory metadata
  name: 'chat-with-docs',
  description: 'Chat with given docs',
  
  // Git configuration
  git: {
    enabled: true,
    include: [
      'examples/pipe.run.ts',
      '!.baseai'
    ],
    gitignore: true,
    deployedAt: 'xx',
    embeddedAt: 'xx'
  }
})

export default buildMemory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants