Find answers from the community

l
lars
Offline, last seen 3 months ago
Joined September 25, 2024
hey guys 😄 i have managed to use the DatabaseReader loader and create an index.json file from my SQL db data. but the content of the json is just numbers and guid. see example file.

i have used the implementation in this demo: https://github.com/jerryjliu/gpt_index/blob/main/examples/data_connectors/DatabaseReaderDemo.ipynb

when i print the "texts" object, the real data is there. but how do I convert this real data to the index.json file?
23 comments
j
l
hey guys! i am trying to use the DatabaseReader loader. I get this error when trying to run the script:
Data source name not found and no default driver specified (0) (SQLDriverConnect)')
(Background on this error at: https://sqlalche.me/e/14/rvf5)

The database server and database is on Azure. This is my config:
db = DatabaseReader(
scheme = "mssql", # Database Scheme
host = "host", # Database Host
port = "1433", # Database Port
user = "insert userl", # Database User
password = "insert password", # Database Password
dbname = "database name", # Database Name
)

anyone knows what the problem? 🙂
2 comments
l
i think you have to set the response_mode to default when using the «query» function 😊 thats whats @kapa.ai told me, and it works really good for me
2 comments
k
hey guys 😄 has anyone tried the github_repo loader? https://llamahub.ai/l/github_repo
i cant seem to get it working, looks like i need to import something more from github than what it says in the example in the link above. anyone knows?

this is the error: from modules.github_repo import GithubClient, GithubRepositoryReader
ModuleNotFoundError: No module named 'modules'
33 comments
l
j
H
M
Hey all. Just stumbled upon this project. When using GPTIndex, does the LLM train on the content I want to index? Meaning that other people using the LLM could get my info from my content? Is there anything I should not use GPTIndex on?😊
1 comment
C