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

Integration with LangChain? #64

Open
bborn opened this issue Feb 26, 2023 · 5 comments
Open

Integration with LangChain? #64

bborn opened this issue Feb 26, 2023 · 5 comments

Comments

@bborn
Copy link

bborn commented Feb 26, 2023

Hi! This is such a cool project - wondering if you've thought at all about integrating with LangChain or writing an adapter? Is there any reason why this has to be used with BERT? Or could it also work with other models?

@abhijithneilabraham
Copy link
Owner

@bborn I am pretty sure the scope of this project can go beyond using BERT-based models. What are your thoughts about integrating with LangChain? Would love to hear about it.

Best Regards.

@bborn
Copy link
Author

bborn commented Feb 26, 2023

LC has a SQLDatabase chain (https://langchain.readthedocs.io/en/latest/modules/chains/examples/sqlite.html?highlight=sql) for interacting with a database in natural language, but I think this repo is quite a bit more advanced.

I think it would be cool to make tableQA available as a LangChain tool (or Chain, maybe). Seems like the main thing that would need to change is making tableQA's LLM pluggable, instead of hard coding it to use Bert.

I don't know your codebase, but maybe starting here? https://github.com/abhijithneilabraham/tableQA/blob/master/tableqa/nlp.py#L12

Maybe that could be configurable so you could just plug any llm there (see here: https://langchain.readthedocs.io/en/latest/modules/llms/getting_started.html)

(Sorry if I'm off base here)

@abhijithneilabraham
Copy link
Owner

abhijithneilabraham commented Feb 26, 2023

This makes a lot of sense to me! Do you think I would need extra compute for writing tests for this one? @bborn

@bborn
Copy link
Author

bborn commented Feb 26, 2023

Not sure - but I think you could use this: https://langchain.readthedocs.io/en/latest/modules/llms/examples/fake_llm.html?highlight=fake%20llm to avoid racking up $$

@abhijithneilabraham
Copy link
Owner

Thank You very much! I am definitely working on this if my work could be actually of use anywhere haha!

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

No branches or pull requests

2 participants