Skip to content

Soroushsrd/Academic-name-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Academic-name-search

This Python script utilizes the Tavily, LangChain, and OpenAI GPT-4 libraries to search for academic professors and researchers. It outputs their name, recent background and research, their position, and email.

Dependencies

  • tavily - Python client for Tavily API.
  • langchain_openai - Library for OpenAI GPT-4 integration.
  • langchain_community - Additional modules for LangChain.
  • streamlit - Framework for building interactive web applications.
  • requests - Library for making HTTP requests.
  • bs4 (Beautiful Soup) - Library for web scraping.

To run the application locally, follow these steps:

  • Install the required dependencies using pip:
pip install -r requirements.txt
  • Obtain an API key for OpenAI and set it as an environment variable named OPENAI_API_KEY.
  • Obtain an API key for Tavily and replace 'Your_API' in the script with your API key.
[streamlit]
OPENAI_API_KEY = "your_openai_api_key"

Usage

  1. Run the Streamlit app:
streamlit run app.py
  1. Enter the name of the professor/Dr you're trying to look up.
  2. Optionally, add another search query.
  3. Click the "Start" button to initiate the search.

Example

Name Search

Contributing

  • This application relies on the LangChain library for natural language processing tasks.
  • The GPT-4 Turbo model is provided by OpenAI.
  • Tavily is used to search the internet.

License

This project is licensed under the Apache License 2.0

About

Learn everything you need to know about any academic figure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages