NEW:Add Auto-synced LB Memory for docs #717
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds all docs (
.md
and.mdx
files) in/docs
folder to Langbase memory. It uses the auto-sync git memory of BaseAI.I have setup BaseAI and initially deployed all docs inside /docs folder (492
.md
and.mdx
files) tosourcegraph/docs
memory on Langbase. You can view this memory inside Sourcegraph memories on Langbase.How to update Sourcegraph
docs
memoryThe memory can by synced with the latest docs changes anytime by running the following commands:
Step 1: Authenticate
First, authenticate with the Sourcegraph organization on Langbase. This step only needs to be done once and you will be authenticated for future use.
# In root folder of sourcegraph/docs repo npx baseai@latest auth
Step 2: Deploy
Whenever you have changes in the docs and want to update the memory, run the following command:
# Deploy the latest docs to Langbase memory npx baseai@latest deploy -m docs
BaseAI will automatically detect and update only the files that have changed. Your memory will now be up to date.
How it works
After deployment, BaseAI stores the current commit hash in the
baseai/memory/docs/index.ts
file to keep track of changes. The next time you deploy, BaseAI will use this hash to detect new changes. Be sure not to manually modify or delete the commit hash.Read more
Follow the BaseAI docs for more details: