Coder Social home page Coder Social logo

cosearchagent's Introduction

CoSearchAgent: A Lightweight Collaborative Search Agent with Large Language Models

Introduction

To better support the research in collaborative search, we propose CoSearchAgent, a lightweight collaborative search agent powered by LLMs. CoSearchAgent is designed as a Slack plugin that can support collaborative search during multi-party conversations on this platform. Equipped with the capacity to understand the queries and contexts in multi-user conversations and the ability to search the Web for relevant information via APIs, CoSearchAgent can respond to user queries with answers grounded on the relevant search results. It can also ask clarifying questions when the information needs are unclear. We implement this agent in both English and Chinese.

sda

Demo Video

How to deploy

  1. Register a Slack account, log in, and create a Workspace.
  2. Link MySQL, create two tables respectively used to store user information and channel information.
  3. Create a channel and insert channel information into the data table.
  4. Insert your and the invited user's personal information into the data table.
  5. Register your CoSearchAgent APP in the created workspace, obtain the APP Token, Bot Token and Bot Id, and write them into cosearch_agent_app.py.
  6. Input your OpenAI API key, SerpAPI key and mysql password into utils.py
  7. Execute the following code to run CoSearchAgent:
     python [en/zh]_cosearch_agent_app.py
  8. Introduce CoSearchAgent into the created channel and use @CoSearchAgent to initiate queries with starting tokens.

Case Study

CoSearchAgent not only accurately rewrites the user query for search but also offers a detailed and precise answer, supported by citation markers. Moreover, displaying content relevant to the query in the search results makes it more convenient for users to assess whether to navigate to the corresponding search page for detailed reading, thereby improving search efficiency.

sda

Authors

  • Peiyuan Gong
  • Jiamian Li
  • Jiaxin Mao (corresponding author)

Please contact us at [email protected] if you have any questions!

Citation

@article{gong2024cosearchagent,
  title={CoSearchAgent: A Lightweight Collaborative Search Agent with Large Language Models},
  author={Gong, Peiyuan and Li, Jiamian and Mao, Jiaxin},
  journal={arXiv preprint arXiv:2402.06360},
  year={2024}
}

cosearchagent's People

Contributors

pygongnlp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.