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

Implement listIndexes command #1605

Open
maheshrajamani opened this issue Oct 24, 2024 · 0 comments · May be fixed by #1609
Open

Implement listIndexes command #1605

maheshrajamani opened this issue Oct 24, 2024 · 0 comments · May be fixed by #1609
Assignees

Comments

@maheshrajamani
Copy link
Contributor

listIndexes command will be a table level command that will return indexes for a table.

By default return only the index names.
Request:

{
    "listIndexes": {}
}

Response:

{
    "status": {
        "indexes": [
            "name_idx",
            "content_idx"
        ]
    }
}

If explain option is set to true return full index definition.
Request:

{
    "listIndexes": {
        "options" : {
            "explain" : true
        }
    }
}

Response:

{
    "status": {
        "indexes": [
            {
                "name": "name_idx",
                "definition": {
                    "column": "name",
                    "options": {
                        "normalize": true,
                        "ascii": true
                    }
                }
            },
            {
                "name": "content_idx",
                "definition": {
                    "column": "content",
                    "options": {
                        "metric": "cosine",
                        "sourceModel": "openai_v3_small"
                    }
                }
            }
        ]
    }
}
@maheshrajamani maheshrajamani linked a pull request Oct 25, 2024 that will close this issue
4 tasks
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 a pull request may close this issue.

1 participant