Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Is the data connector extension in llama-index supported? #166

Discussion options

You must be logged in to vote

Hi @xiaolibuzai-ovo,

Yes, If you prefer to use the readers implemented in llama-hub and not in our builtin readers, then you can indeed use those as well. For example for database reader, you would use the example given:

from llama_index import download_loader

DatabaseReader = download_loader('DatabaseReader')

reader = DatabaseReader(
    scheme = "postgresql", # Database Scheme
    host = "localhost", # Database Host
    port = "5432", # Database Port
    user = "postgres", # Database User
    password = "FakeExamplePassword", # Database Password
    dbname = "postgres", # Database Name
)

query = f"""
SELECT
    CONCAT(name, ' is ', age, ' years old.') AS text
FROM public.users
WHERE …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SeeknnDestroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants