Skip to content

MLE-23398 Added docs for vector functions #115

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

Merged
merged 1 commit into from
Aug 6, 2025
Merged

Conversation

rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Aug 6, 2025

Hat tip to Copilot.

@Copilot Copilot AI review requested due to automatic review settings August 6, 2025 15:07
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation for vector embedding functionality in the MarkLogic Python client, specifically covering how to use base64 encoding utilities for vector data when writing documents.

  • Added a new section explaining vector embeddings support in MarkLogic 12 and the Python client
  • Provided code example demonstrating the use of base64_encode function from the marklogic.vectors module
  • Documented the performance benefits of encoding vectors as base64 strings before database storage

"embedding": encoded_vector # Store as encoded string
}

doc = Document("/documents/sample-doc.json", document_content, permissions=default_perms)
Copy link
Preview

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable default_perms is used in the example but is not defined or explained. Consider either defining this variable in the example or adding a comment explaining where it comes from, such as referencing earlier documentation sections.

Copilot uses AI. Check for mistakes.

@rjrudin
Copy link
Contributor Author

rjrudin commented Aug 6, 2025

The vector tests are failing because Jenkinsfile is using MarkLogic 11, I'll fix in a separate PR.

@rjrudin rjrudin merged commit da25679 into develop Aug 6, 2025
1 of 2 checks passed
@rjrudin rjrudin deleted the feature/vector-docs branch August 6, 2025 15:44
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