Find answers from the community

Updated 3 months ago

Gpt4

By any chance can you point me to an example?
L
s
12 comments
It's not reading a csv, but it's using gpt 4

https://github.com/jerryjliu/llama_index/blob/main/examples/paul_graham_essay/GPT4Comparison.ipynb

The data type doesn't really matter once you have it in an index
Ok, thank you. I'll try to do this but with a CSV (or Excel, doesn't matter which I take it)
I can in theory load multiple CSVs into a directory as this loads multiple essays?
Ok, I might update this thread later on if that's OK, Logan. Going to try this out.
@Logan M It appears ServiceContext isn't available in llama_index?

Plain Text
ImportError: cannot import name 'ServiceContext' from 'llama_index'
you might need to update your llama_index version (it was introduced in v0.5.0, current version is 0.5.17 I think?)
ah yeah, duh. thank you
almost there
hey @Logan M good morning πŸ™‚ curious is there also a plugin that can load a JSON document? I want to try that also to see how results are for querying some documentation (trying to query Discord.js v14 documentation that's stored in JSON)
Morning!

You can try the JSONReader

Plain Text
from llama_index.readers.json import JSONReader

loader = JSONReader()
documents = loader.load_data('./data.json')
thanks sir πŸ™‚ trying it now
Add a reply
Sign up and join the conversation on Discord