llama-index-packs-cogniswitch-agent


Namellama-index-packs-cogniswitch-agent JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
Summaryllama-index packs cogniswitch_agent integration
upload_time2024-08-22 16:44:28
maintainercogniswitch
docs_urlNone
authorYour Name
requires_python<4.0,>=3.8.1
licenseMIT
keywords embedding graph knowledge graph neural symbolic
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Cogniswitch LlamaPack

**Use CogniSwitch to build production ready applications that can consume, organize and retrieve knowledge flawlessly. Using the framework of your choice, in this case LlamaIndex, CogniSwitch helps alleviate the stress of decision making when it comes to, choosing the right storage and retrieval formats. It also eradicates reliability issues and hallucinations when it comes to responses that are generated. Get started by interacting with your knowledge in a few simple steps**

visit [https://www.cogniswitch.ai/developer](https://www.cogniswitch.ai/developer?utm_source=llamaindex&utm_medium=llamaindexbuild&utm_id=dev).

**Registration:**

- Signup with your email and verify your registration
- You will get a mail with a platform token and OAuth token for using the services.

**Step 1: Download the CogniSwitch Llama pack:**

- Download the CogniswitchAgentPack either with the llama-cli or import using the code.

**Step 2: Instantiate the CogniswitchAgentPack:**

- Instantiate the cogniswitch agent pack with all the credentials.

**Step 3: Cogniswitch Store data:**

- Make the call to the agent by giving the file path or url to the agent input.
- The agent will pick the tool and use the file/url and it will be processed and stored in your knowledge store.
- You can check the status of document processing with a call to the agent. Alternatively you can also check in [cogniswitch console](https://console.cogniswitch.ai:8443/login?utm_source=llamaindex&utm_medium=llamaindexbuild&utm_id=dev).

**Step 4: Cogniswitch Answer:**

- Make the call to the agent by giving query as agent input.
- You will get the answer from your knowledge as the response.

## CLI Usage

You can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:

```bash
llamaindex-cli download-llamapack CogniswitchAgentPack --download-dir ./cs_pack
```

## Code Usage

```python
import warnings

warnings.filterwarnings("ignore")
from llama_index.packs.cogniswitch_agent import CogniswitchAgentPack
import os


### Cogniswitch Credentials and OpenAI token
# os.environ["OPENAI_API_KEY"] = <your openai token>
# cogniswitch_tool_args = {
#   "cs_token":<your cogniswitch platform token>,
#   "apiKey":<your cogniswitch apikey>
# }

cogniswitch_agent_pack = CogniswitchAgentPack(cogniswitch_tool_args)
```

From here, you can use the pack, or inspect and modify the pack in `./cs_pack`.

The `run()` function is a light wrapper around `agent.chat()`.

### Use the cogniswitch agent for storing data in cogniswitch with a single call

```python
response = cogniswitch_agent_pack.run(
    "Upload this URL- https://cogniswitch.ai/developer"
)
```

### Use the cogniswitch agent to know the status of the document with a call

```python
response = cogniswitch_agent_pack.run(
    "Tell me the status of https://cogniswitch.ai/developer"
)
```

### Use the cogniswitch agent for answering with a single call

```python
response = cogniswitch_agent_pack.run(
    "Answer the question- Tell me about cogniswitch"
)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-packs-cogniswitch-agent",
    "maintainer": "cogniswitch",
    "docs_url": null,
    "requires_python": "<4.0,>=3.8.1",
    "maintainer_email": null,
    "keywords": "embedding, graph, knowledge graph, neural, symbolic",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/ca/d2/022bd393b9f49901c6195c60f450a7f55fa1b3e53f768075ac671372f1fd/llama_index_packs_cogniswitch_agent-0.2.0.tar.gz",
    "platform": null,
    "description": "## Cogniswitch LlamaPack\n\n**Use CogniSwitch to build production ready applications that can consume, organize and retrieve knowledge flawlessly. Using the framework of your choice, in this case LlamaIndex, CogniSwitch helps alleviate the stress of decision making when it comes to, choosing the right storage and retrieval formats. It also eradicates reliability issues and hallucinations when it comes to responses that are generated. Get started by interacting with your knowledge in a few simple steps**\n\nvisit [https://www.cogniswitch.ai/developer](https://www.cogniswitch.ai/developer?utm_source=llamaindex&utm_medium=llamaindexbuild&utm_id=dev).\n\n**Registration:**\n\n- Signup with your email and verify your registration\n- You will get a mail with a platform token and OAuth token for using the services.\n\n**Step 1: Download the CogniSwitch Llama pack:**\n\n- Download the CogniswitchAgentPack either with the llama-cli or import using the code.\n\n**Step 2: Instantiate the CogniswitchAgentPack:**\n\n- Instantiate the cogniswitch agent pack with all the credentials.\n\n**Step 3: Cogniswitch Store data:**\n\n- Make the call to the agent by giving the file path or url to the agent input.\n- The agent will pick the tool and use the file/url and it will be processed and stored in your knowledge store.\n- You can check the status of document processing with a call to the agent. Alternatively you can also check in [cogniswitch console](https://console.cogniswitch.ai:8443/login?utm_source=llamaindex&utm_medium=llamaindexbuild&utm_id=dev).\n\n**Step 4: Cogniswitch Answer:**\n\n- Make the call to the agent by giving query as agent input.\n- You will get the answer from your knowledge as the response.\n\n## CLI Usage\n\nYou can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:\n\n```bash\nllamaindex-cli download-llamapack CogniswitchAgentPack --download-dir ./cs_pack\n```\n\n## Code Usage\n\n```python\nimport warnings\n\nwarnings.filterwarnings(\"ignore\")\nfrom llama_index.packs.cogniswitch_agent import CogniswitchAgentPack\nimport os\n\n\n### Cogniswitch Credentials and OpenAI token\n# os.environ[\"OPENAI_API_KEY\"] = <your openai token>\n# cogniswitch_tool_args = {\n#   \"cs_token\":<your cogniswitch platform token>,\n#   \"apiKey\":<your cogniswitch apikey>\n# }\n\ncogniswitch_agent_pack = CogniswitchAgentPack(cogniswitch_tool_args)\n```\n\nFrom here, you can use the pack, or inspect and modify the pack in `./cs_pack`.\n\nThe `run()` function is a light wrapper around `agent.chat()`.\n\n### Use the cogniswitch agent for storing data in cogniswitch with a single call\n\n```python\nresponse = cogniswitch_agent_pack.run(\n    \"Upload this URL- https://cogniswitch.ai/developer\"\n)\n```\n\n### Use the cogniswitch agent to know the status of the document with a call\n\n```python\nresponse = cogniswitch_agent_pack.run(\n    \"Tell me the status of https://cogniswitch.ai/developer\"\n)\n```\n\n### Use the cogniswitch agent for answering with a single call\n\n```python\nresponse = cogniswitch_agent_pack.run(\n    \"Answer the question- Tell me about cogniswitch\"\n)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index packs cogniswitch_agent integration",
    "version": "0.2.0",
    "project_urls": null,
    "split_keywords": [
        "embedding",
        " graph",
        " knowledge graph",
        " neural",
        " symbolic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57ead1df4913d22904b050b1a5ed99fe8999cc23d39515e1a24c22669a32a9de",
                "md5": "66618bacd42d1d375feef83b73e42f53",
                "sha256": "884a1f673d3c2309a056b0c4b5a367697492a8342cfdf6949a7693451e2c45c0"
            },
            "downloads": -1,
            "filename": "llama_index_packs_cogniswitch_agent-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "66618bacd42d1d375feef83b73e42f53",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 3292,
            "upload_time": "2024-08-22T16:44:26",
            "upload_time_iso_8601": "2024-08-22T16:44:26.953931Z",
            "url": "https://files.pythonhosted.org/packages/57/ea/d1df4913d22904b050b1a5ed99fe8999cc23d39515e1a24c22669a32a9de/llama_index_packs_cogniswitch_agent-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cad2022bd393b9f49901c6195c60f450a7f55fa1b3e53f768075ac671372f1fd",
                "md5": "d3609769b55fc3c103a103df7ca05169",
                "sha256": "26b4400de42600b8ee1b61289713711be3f054c5ee6c59afe063abb2de528ca3"
            },
            "downloads": -1,
            "filename": "llama_index_packs_cogniswitch_agent-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d3609769b55fc3c103a103df7ca05169",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 3013,
            "upload_time": "2024-08-22T16:44:28",
            "upload_time_iso_8601": "2024-08-22T16:44:28.290187Z",
            "url": "https://files.pythonhosted.org/packages/ca/d2/022bd393b9f49901c6195c60f450a7f55fa1b3e53f768075ac671372f1fd/llama_index_packs_cogniswitch_agent-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-22 16:44:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-packs-cogniswitch-agent"
}
        
Elapsed time: 0.32198s