Find answers from the community

Home
Members
simone.dicola
s
simone.dicola
Offline, last seen 3 months ago
Joined September 25, 2024
Hi all, how do I pass an api key to access hugging face private repo? I cannot find a way to pass it. For open ai it is an enviroment variable.
3 comments
L
s
Long story short: I would like not to send my data to OpenAI. Hence why I would like to use GPT4All. However, ReActAgent needs a llm of different type.
3 comments
s
L
how to switch from q query engine to a chat engine with this code?
Plain Text
obj_index = ObjectIndex.from_objects(table_schema_objs, table_node_mapping, VectorStoreIndex)

query_engine = SQLTableRetrieverQueryEngine(sql_database, obj_index.as_retriever(similarity_top_k=1))


(that is coming from the tutorial https://gpt-index.readthedocs.io/en/latest/end_to_end_tutorials/structured_data/sql_guide.html)
2 comments
s
L
Hi all, I have followed this tutorial -> https://gpt-index.readthedocs.io/en/latest/end_to_end_tutorials/structured_data/sql_guide.html. All works pretty well. I would like to use PaLM and not OpenAI since I got credits there. I can see that it is possible, https://gpt-index.readthedocs.io/en/latest/examples/llm/palm.html but I have no idea what needs to be changed in my code:
2 comments
s
L
private setup: I am following the documentation https://colab.research.google.com/drive/16QMQePkONNlDpgiltOi7oRQgmB8dU5fl?usp=sharing and to be honest I am pretty confused about what I should use here. Here is my relevant code:
5 comments
L
s
Here the error
15 comments
s
L